Ansible
Removing an host out of playbook execution
Archives
Ansible Project
ansible-project
Michael_DeHaan2
(Michael DeHaan)
May 20, 2013, 3:13pm
1
Something like this will take it out of rotation for all remaining plays:
note that I’m assuming False shouldn’t be a String here
tasks:
fail: msg=“missing IP address on host”
when: not myswitch.ipaddr
Related topics
Topic
Replies
Views
Activity
Skip the hosts when one host is exectued task successfully
Ansible Project
0
2
March 3, 2016
Removing an host out of playbook execution
Ansible Project
0
4
May 20, 2013
how to abort task execution for other hosts if one task fails for one host
Ansible Project
0
6
August 18, 2015
How do I exit Ansible playbook without error on a condition
Ansible Project
4
202
November 26, 2018
Quit a playbook without error for a particular host
Ansible Project
1
24
October 20, 2022