a way to do this is having a block on whole role and a rescue that
checks for the error, which allows you to make a 'skip rest' kind
facility.
--
--
Brian Coca
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from
A play encompasses `pre_tasks`, `roles`, `tasks`, and `post_tasks`. You
are expecting it to end the role.
Perhaps you should instead move all subsequent tasks of that role into a
block or another file and use include_tasks, and then apply the `when`
statement to that (but reverse the logic).
On
I have the following playbook:
---
- hosts: "{{ host }}"
roles:
- ansible_dependencies
- aliases
- dns_update
- cpu_utilization
- role: nagios
install: yes
- password_policy
- role: disable_NetworkManager
new_install: yes
- ldap_users
-