From c5363b2965e278565dfd1272eb47a7e9126cddb8 Mon Sep 17 00:00:00 2001 From: Michele Cereda Date: Wed, 13 Nov 2024 01:40:03 +0100 Subject: [PATCH] chore(ansible): improve readability --- knowledge base/ansible.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/knowledge base/ansible.md b/knowledge base/ansible.md index 5624aac..9731ba4 100644 --- a/knowledge base/ansible.md +++ b/knowledge base/ansible.md @@ -483,6 +483,8 @@ Return a boolean result. Refer [Asynchronous actions and polling]. +Used to avoid connection timeouts and to run tasks concurrently. + Executing tasks in the background will return a Job ID that can be polled for information about that task.
Polling keeps the connection to the remote node open between polls. @@ -506,8 +508,9 @@ ansible 'web1.example.com' -m 'async_status' -a 'jid=488359678239.2844' ```yaml --- -- tasks: - - name: Simulate long running op (15 sec), wait for up to 45 sec, poll every 5 sec +- … + tasks: + - name: Simulate long running operation (15 sec), wait for up to 45 sec, poll every 5 sec ansible.builtin.command: /bin/sleep 15 async: 45 poll: 5