Fix dnsmasq restart requiring sudo privileges
The task will fail, as sending a HUP signal requires sudo. Change-Id: I40ed4fbc0bc5c4db96afd58566fcdf0d55e60c44 Closes-Bug: lp1514747
This commit is contained in:
parent
7ce4e9595d
commit
01902ae1bb
@ -25,6 +25,7 @@
|
|||||||
# Note(TheJulia): We need to actually to send a hup signal directly as
|
# 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.
|
# Ansible's reloaded state does not pass through to the init script.
|
||||||
command: killall -HUP dnsmasq
|
command: killall -HUP dnsmasq
|
||||||
|
become: yes
|
||||||
when: inventory_dhcp | bool and instance_info is not defined or ( instance_info is defined and instance_info | to_json == '{}' )
|
when: inventory_dhcp | bool and instance_info is not defined or ( instance_info is defined and instance_info | to_json == '{}' )
|
||||||
- name: "Deploy to hardware - Using custom instance_info."
|
- name: "Deploy to hardware - Using custom instance_info."
|
||||||
os_ironic_node:
|
os_ironic_node:
|
||||||
|
Loading…
Reference in New Issue
Block a user