2016-08-18 23:14:52 +08:00
|
|
|
- name: Dnsmasq | restart network
|
2016-08-29 22:39:55 +08:00
|
|
|
command: /bin/true
|
|
|
|
notify:
|
|
|
|
- Dnsmasq | reload network
|
|
|
|
- Dnsmasq | update resolvconf
|
|
|
|
when: ansible_os_family != "CoreOS"
|
|
|
|
|
|
|
|
- name: Dnsmasq | reload network
|
2016-08-18 23:14:52 +08:00
|
|
|
service:
|
|
|
|
name: >-
|
|
|
|
{% if ansible_os_family == "RedHat" -%}
|
|
|
|
network
|
|
|
|
{%- elif ansible_os_family == "Debian" -%}
|
|
|
|
networking
|
|
|
|
{%- endif %}
|
|
|
|
state: restarted
|
2016-08-29 22:39:55 +08:00
|
|
|
when: ansible_os_family != "RedHat" and ansible_os_family != "CoreOS"
|
|
|
|
|
|
|
|
- name: Dnsmasq | update resolvconf
|
|
|
|
command: /sbin/resolvconf -u
|
|
|
|
ignore_errors: true
|