Hi
Simple answer: Ansible evaluates the return code of each task to determine whether the task succeeded or failed. Normally, when a task fails Ansible immediately aborts the rest of the play on that host, skipping all subsequent tasks.
More detail, look, please: https://docs.ansible.com/ansible/2.8/user_guide/playbooks_error_handling.html
Thank you!.
@linuxss wrote:Quick question folks - if one or all hosts in the first play has errors then should the second play in the same playbook run for the same hosts... Not sure what is the correct or expected result for these scenarios.Thanks.
I presume it would try the play for the (i) next host or the (ii) next play in the same playbook for another host...
Hi
Simple answer: Ansible evaluates the return code of each task to determine whether the task succeeded or failed. Normally, when a task fails Ansible immediately aborts the rest of the play on that host, skipping all subsequent tasks.
More detail, look, please: https://docs.ansible.com/ansible/2.8/user_guide/playbooks_error_handling.html
in the exam environment - what would be the best way to copy paste between windows and for opening new terminals....? Ctrl + Shift + T ?
Thank you!.
@linuxss wrote:Quick question folks - if one or all hosts in the first play has errors then should the second play in the same playbook run for the same hosts... Not sure what is the correct or expected result for these scenarios.Thanks.
I presume it would try the play for the (i) next host or the (ii) next play in the same playbook for another host...
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.