
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- 2,961 Views
Accepted Solutions


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- 2,940 Views
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- 2,885 Views
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...


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- 2,941 Views
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- 2,501 Views
in the exam environment - what would be the best way to copy paste between windows and for opening new terminals....? Ctrl + Shift + T ?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- 2,886 Views
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...