From e799d12a727858639ccca4f34cd5a34e68480b6e Mon Sep 17 00:00:00 2001 From: Evgeniy L Date: Thu, 22 Oct 2015 13:27:31 +0300 Subject: [PATCH] Remove waiting for dnsmasq to be restarted since solar doesn't run several tasks on a single node --- resources/dnsmasq/actions/exclude_mac_pxe.yaml | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/resources/dnsmasq/actions/exclude_mac_pxe.yaml b/resources/dnsmasq/actions/exclude_mac_pxe.yaml index 65c3d1be..91b16416 100644 --- a/resources/dnsmasq/actions/exclude_mac_pxe.yaml +++ b/resources/dnsmasq/actions/exclude_mac_pxe.yaml @@ -3,15 +3,4 @@ tasks: - lineinfile: create=yes dest=/etc/dnsmasq.d/no_pxe_{{exclude_mac_pxe | replace(':', '_')}}.conf line="dhcp-host={{exclude_mac_pxe}},set:nopxe" - # FIXME: currently there is no way to specify - # policy not to run several tasks in parallel, - # so when we deploy several nodes in parallel - # it causes the problems when two tasks try - # to restart supervisor at the same time, and - # fail to do it. - - command: service dnsmasq status - register: log - until: log.stdout.find('running') > -1 - retries: 5 - delay: 2 - shell: service dnsmasq restart