From a0d56d2f4f32f174bd6c463118a3a38eeb70921b Mon Sep 17 00:00:00 2001 From: Aditya Putta Date: Tue, 22 Jul 2025 14:51:20 -0500 Subject: [PATCH] Usage of 'sleep' parameter in ansible.builtin.wait_for_connection (#85435) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Aditya Putta Co-authored-by: 🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) Co-authored-by: Abhijeet Kasurde --- lib/ansible/modules/wait_for_connection.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ansible/modules/wait_for_connection.py b/lib/ansible/modules/wait_for_connection.py index 8007b10ee2b..ee2b507a4dd 100644 --- a/lib/ansible/modules/wait_for_connection.py +++ b/lib/ansible/modules/wait_for_connection.py @@ -104,9 +104,10 @@ EXAMPLES = r""" - cmd.exe /c winrm.cmd quickconfig -quiet -force delegate_to: localhost - - name: Wait for system to become reachable over WinRM + - name: Wait for system to become reachable over WinRM, polling every 10 seconds ansible.builtin.wait_for_connection: timeout: 900 + sleep: 10 - name: Gather facts for first time ansible.builtin.setup: