Skip to content

Commit 81a881e

Browse files
authored
Merge pull request #3 from T-Systems-MMS/use_retries_instead_of_wait_for
use retries instead of wait_for before upload
2 parents 25fd5d2 + fff3346 commit 81a881e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

roles/ansible_icinga_business_process/tasks/business_process.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,6 @@
4848
alreadyexists.status == 200 and
4949
dl_cleanup != template_cleanup
5050
51-
- name: wait for 10 seconds and continue with play
52-
wait_for:
53-
timeout: 10
54-
5551
- name: upload template
5652
uri:
5753
url: "{{ icinga_business_process_url }}/businessprocess/process/upload"
@@ -66,6 +62,10 @@
6662
source: "{{ lookup('template', './config.j2', convert_data=False) }}"
6763
Store: Store
6864
__FORM_NAME: IcingaModuleBusinessprocessFormsBpUploadForm
65+
register: upload
66+
retries: 10
67+
delay: 10
68+
until: upload.status == 302
6969
when: >
7070
(
7171
alreadyexists.status == 200 and

0 commit comments

Comments
 (0)