Check status of an operation running in the background - Ansible

0 votes
I want to check the status of an operation that is running background in Ansible. How do I achieve this?
Mar 6, 2019 in Ansible by Neel
176 views

1 answer to this question.

0 votes

Hey @Neel, According to the documentation,

Long running operations can run in the background, and it is possible to check their status later. For example, to execute long_running_operation asynchronously in the background, with a timeout of 3600 seconds (-B), and without polling (-P):

$ ansible all -B 3600 -P 0 -a "/usr/bin/long_running_operation --do-stuff"
answered Mar 6, 2019 by Yesha

Related Questions In Ansible

0 votes
1 answer

How to check the syntax of an Ansible playbook?

Hi@akhtar, Ansible has lots of commands, that help ...READ MORE

answered Sep 15 in Ansible by MD
• 79,930 points
520 views
0 votes
1 answer
0 votes
1 answer

Role of subelement module in an Ansible playbook

Hey @Rahul thanks for a better question ...READ MORE

answered Jan 16, 2019 in Ansible by Emily
889 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
815 views
+2 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Error while running playbook consisting of roles - Ansible

You get this error because ansible was ...READ MORE

answered Mar 12, 2019 in Ansible by William
329 views