Fix inventory_dns
Dnsmasq does not re-read its config files on SIGHUP ([1]). Since a config directive (host-record) is used, a service restart is required in order for the record to be available. [1] "Notes [...] SIGHUP does NOT re-read the configuration file." - http://www.thekelleys.org.uk/dnsmasq/docs/dnsmasq-man.html Change-Id: I84ab94b6c1ae61fccc1b1aba5df52a000b1fa449
This commit is contained in:
parent
d5a63285ae
commit
b60d21a517
|
@ -60,10 +60,10 @@
|
|||
mode: 0644
|
||||
when: inventory_dns | bool == true
|
||||
become: yes
|
||||
- name: "Sending dnsmasq HUP"
|
||||
# Note(TheJulia): We need to actually to send a hup signal directly as
|
||||
# Ansible's reloaded state does not pass through to the init script.
|
||||
command: killall -HUP dnsmasq
|
||||
- name: "Restarting dnsmasq"
|
||||
service:
|
||||
name: dnsmasq
|
||||
state: restarted
|
||||
become: yes
|
||||
when: (inventory_dhcp | bool == true) or (inventory_dns | bool == true)
|
||||
- name: "Deploy to hardware - Using custom instance_info."
|
||||
|
|
Loading…
Reference in New Issue