mirror of
https://github.com/roles-ansible/ansible_role_unbound.git
synced 2024-08-16 13:39:49 +02:00
try to improve by retry
This commit is contained in:
parent
97f3bf847d
commit
e22c70797c
1 changed files with 5 additions and 1 deletions
|
@ -2,7 +2,11 @@
|
|||
- name: unbound checkconf
|
||||
become: true
|
||||
ansible.builtin.command: unbound-checkconf /etc/unbound/unbound.conf
|
||||
changed_when: true
|
||||
retries: 5
|
||||
delay: 3
|
||||
register: result
|
||||
until: result.rc == 0
|
||||
|
||||
notify: systemctl restart unbound
|
||||
|
||||
- name: systemctl restart unbound
|
||||
|
|
Loading…
Reference in a new issue