Skip to content

Commit e3f9104

Browse files
committed
Removing failed_when: false from async polling
Extending timeout Signed-off-by: Nicolas Bettembourg <[email protected]>
1 parent 1f71f91 commit e3f9104

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

roles/sap_control/tasks/sapcontrol_async.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
- name: Pause for 5 Seconds
33
ansible.builtin.wait_for:
4-
timeout: 5
4+
timeout: 15
55

66
- name: SAP {{ sap_control_name_header }} - Checking if Async action is over by executing sapcontrol -nr {{ passed_sap_nr }} -function {{ async_function_dict.test_function }}
77
ansible.builtin.shell: |
@@ -11,15 +11,13 @@
1111
become: true
1212
become_user: "{{ passed_sap_sid | lower }}adm"
1313
register: test_function_result
14-
# failed_when: "'FAIL' in test_function_result.stdout"
1514
retries: "{{ async_function_dict.retries | default(0) | int }}"
1615
delay: "{{ async_function_dict.delay | default(0) | int }}"
1716
until: >
1817
(async_function_dict.until_false is not defined
1918
or async_function_dict.until_false is defined and not test_function_result.stdout | regex_search(async_function_dict.until_false, multiline=True)) and
2019
(async_function_dict.until_true is not defined or
2120
async_function_dict.until_true is defined and test_function_result.stdout | regex_search(async_function_dict.until_true, multiline=True))
22-
failed_when: false
2321
2422
- name: Debug stdout
2523
ansible.builtin.debug:

0 commit comments

Comments
 (0)