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:
Ricardo Carrillo Cruz 2015-11-10 10:24:50 +01:00
parent 7ce4e9595d
commit 01902ae1bb

View File

@ -25,6 +25,7 @@
# 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
become: yes
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."
os_ironic_node: