# down-debian.yml #- name: Supply resolvconf.conf # template: # dest: /etc/resolvconf.conf # src: network/resolvconf.j2 - name: BIND may be affected service: name: "{{ dns_service }}" state: stopped when: named_install and dnsmasq_enabled # dhcpd_server release the interface - name: dhcpd_server may be affected - stopping dhcpd service: name: dhcpd state: stopped when: dhcpd_install | bool - name: dhcpd_server may be affected - stopping dnsmasq service: name: dnsmasq state: stopped when: dnsmasq_install | bool