Reloading dnsmasq after updated IPs in /etc/hosts
This commit is contained in:
parent
f8a50e8623
commit
c5ffa65ca4
1 changed files with 5 additions and 0 deletions
|
@ -18,3 +18,8 @@
|
|||
with_items: '{{ matching_hosts_files.stdout_lines }}'
|
||||
loop_control:
|
||||
loop_var: filename
|
||||
|
||||
- name: Sending HUP to any dnsmasq process to reload their /etc/hosts
|
||||
command:
|
||||
/usr/bin/killall -HUP dnsmasq
|
||||
failed_when: false
|
||||
|
|
Loading…
Reference in a new issue