Skip to content

Commit 0a8c1bd

Browse files
committed
Replace ansible.builtin.pause with ansible.builtin.wait_for
This fixes an issue when running with strategy free: > ERROR! The 'ansible.builtin.pause' module bypasses the host loop, which > is currently not supported in the free strategy and would instead > execute for every host in the inventory list. Furthermore, the documentation for ansible.builtin.pause states: To pause/wait/sleep per host, use the ansible.builtin.wait_for module. See https://docs.ansible.com/ansible/latest/collections/ansible/builtin/pause_module.html
1 parent 5ff9992 commit 0a8c1bd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

roles/sap_control/tasks/functions/restart_sapstartsrv.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,5 @@
3333
register: sap_start_sapstartsrv
3434

3535
- name: SAPstartsrv - Wait for 10 seconds for sapstartsrv to initialize
36-
ansible.builtin.pause:
37-
seconds: 10
36+
ansible.builtin.wait_for:
37+
timeout: 10

roles/sap_control/tasks/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@
9595
msg: "{{ sap_facts_register.sap_facts }}"
9696

9797
- name: pause for 10 Seconds
98-
ansible.builtin.pause:
99-
seconds: 10
98+
ansible.builtin.wait_for:
99+
timeout: 10
100100

101101
# Debugging stuff
102102
- name: Display parameters for runtime

0 commit comments

Comments
 (0)