]> freie-schul-it.de Git - fsit-smgt.git/blob - library/pihole-update.yml
weitere playbooks umbenannt
[fsit-smgt.git] / library / pihole-update.yml
1 ---
2 - name: kopiere pihole custom.list
3 copy:
4 src: files/dns-pihole_custom.list
5 dest: /etc/pihole/custom.list
6 owner: root
7 group: root
8 mode: 0644
9 - name: kopiere pihole dns20-static-dhcp-liste nach dns20
10 copy:
11 src: files/dns20-pihole_04-pihole-static-dhcp.conf
12 dest: /etc/dnsmasq.d/04-pihole-static-dhcp.conf
13 owner: root
14 group: root
15 mode: 0644
16 backup: yes
17 when: inventory_hostname == 'dns20'
18 - name: kopiere TFTP config-Datei
19 copy:
20 src: files/dns-pihole_10-TFTP.conf
21 dest: /etc/dnsmasq.d/10-TFTP.conf
22 owner: root
23 group: root
24 mode: 0644
25 - name: pihole neustarten
26 command: pihole restartdns
27 # ansible.builtin.shell benutzen?