Skip to content

Commit b6b8975

Browse files
committed
[dnsmasq] Retry restarting dnsmasq
On busy host, if the restart is performed, Ansible is not waiting enough of time to continue. Sometimes it happens that the service was configured few seconds after the Ansible task that require it was executed. Retry and wait for dnsmasq to be restarted before continuation. Signed-off-by: Daniel Pawlik <[email protected]>
1 parent 31509d5 commit b6b8975

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

roles/dnsmasq/handlers/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424
- _dnsmasq.msg is defined
2525
- _dnsmasq.msg is not
2626
match('Could not find the requested service cifmw-dnsmasq.service')
27+
retries: 5
28+
delay: 15
29+
until: _dnsmasq is succeeded
2730

2831
- name: Reload dnsmasq
2932
become: true

0 commit comments

Comments
 (0)