You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
554 B

  1. - name: Dnsmasq | restart network
  2. command: /bin/true
  3. notify:
  4. - Dnsmasq | reload network
  5. - Dnsmasq | update resolvconf
  6. when: ansible_os_family != "CoreOS"
  7. - name: Dnsmasq | reload network
  8. service:
  9. name: >-
  10. {% if ansible_os_family == "RedHat" -%}
  11. network
  12. {%- elif ansible_os_family == "Debian" -%}
  13. networking
  14. {%- endif %}
  15. state: restarted
  16. when: ansible_os_family != "RedHat" and ansible_os_family != "CoreOS"
  17. - name: Dnsmasq | update resolvconf
  18. command: /sbin/resolvconf -u
  19. ignore_errors: true