From 01902ae1bbb0e557d5c78acb161535d245d68f0a Mon Sep 17 00:00:00 2001 From: Ricardo Carrillo Cruz Date: Tue, 10 Nov 2015 10:24:50 +0100 Subject: [PATCH] Fix dnsmasq restart requiring sudo privileges The task will fail, as sending a HUP signal requires sudo. Change-Id: I40ed4fbc0bc5c4db96afd58566fcdf0d55e60c44 Closes-Bug: lp1514747 --- playbooks/roles/bifrost-deploy-nodes-dynamic/tasks/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/playbooks/roles/bifrost-deploy-nodes-dynamic/tasks/main.yml b/playbooks/roles/bifrost-deploy-nodes-dynamic/tasks/main.yml index 8881597e1..26954ba84 100644 --- a/playbooks/roles/bifrost-deploy-nodes-dynamic/tasks/main.yml +++ b/playbooks/roles/bifrost-deploy-nodes-dynamic/tasks/main.yml @@ -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: