Join GitHub today
Doubt regarding Functioning of the script. #2
I used your Ansible script to deploy Azure VM. The script works perfectly fine & I am very thankful for your contribution . As a beginner it helped me a lot to understand ansible and azure. I had a doubt regarding the functionality of the script.
The functionnality you are looking for is "async". See https://docs.ansible.com/ansible/latest/user_guide/playbooks_async.html for official documentation
with Ansible, you can specify to a task that it as to run in async mode. You have to add the following stuff in you task, meaning that the tasks will eventually timeout (120s in the example)
Then, after that, you add the async_status module, that listens for myasynctask.results list.
In our case here (deploying VMs in Azure), it would look like this
Hope this helps