Taskotron: Adapt buildmaster-configure playbook to "Try to launch buildmaster.service multiple times before giving up"
This commit is contained in:
parent
4beb7fe6c6
commit
49611b2e6e
1 changed files with 6 additions and 0 deletions
|
@ -26,6 +26,12 @@
|
|||
|
||||
- name: start and enable buildmaster service
|
||||
service: name=buildmaster enabled=yes state={{ (buildmaster_service.changed) | ternary('restarted','started') }}
|
||||
# Workaround for https://pagure.io/taskotron/issue/139
|
||||
# Otherwise, Ansible playbook will fail if it has to wait for another buildmaster.service start try
|
||||
register: result
|
||||
until: result|succeeded
|
||||
delay: 70
|
||||
retries: 3
|
||||
|
||||
- name: reconfig master
|
||||
become: true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue