--- - name: kopiere pihole custom.list copy: src: files/dns-pihole_custom.list dest: /etc/pihole/custom.list owner: root group: root mode: 0644 - name: kopiere pihole dns20-static-dhcp-liste nach dns20 copy: src: files/dns20-pihole_04-pihole-static-dhcp.conf dest: /etc/dnsmasq.d/04-pihole-static-dhcp.conf owner: root group: root mode: 0644 backup: yes when: inventory_hostname == 'dns20' - name: kopiere TFTP config-Datei copy: src: files/dns-pihole_10-TFTP.conf dest: /etc/dnsmasq.d/10-TFTP.conf owner: root group: root mode: 0644 - name: pihole neustarten command: pihole restartdns # ansible.builtin.shell benutzen?