Excluding a host from a playbook run
Suppose you want to exclude a troublesome host (bad_host) from a particular playbook run. Try using a negated 'limit' option:
ansible-playbook --limit 'all:!bad_host' playbook.yml
Written by Kal Hodgson
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ansible
Authors
Misha Behersky
78.97K
tartansandal
73.31K
Related Tags
#ansible
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#