Browse Source

use sighup to force dnsmasqd to reload /etc/hosts

python3
Andrea Cimbalo 8 years ago
parent
commit
46779deaf7
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      roles/dns_record/tasks/main.yaml

+ 2
- 2
roles/dns_record/tasks/main.yaml View File

@ -6,7 +6,7 @@
delegate_to: gandalf2
register: hosts
- name: restart dnsmasq
shell: "/etc/init.d/dnsmasq restart"
- name: dnsmasq force hosts reload
command: "killall -HUP dnsmasq"
delegate_to: gandalf2
when: hosts.changed

Loading…
Cancel
Save