Reloading dnsmasq after updated IPs in /etc/hosts

This commit is contained in:
László Károlyi 2017-03-15 02:51:58 +01:00
parent f8a50e8623
commit c5ffa65ca4
No known key found for this signature in database
GPG key ID: 372AA22D38BD5B13

View file

@ -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