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.83K
tartansandal
73.25K
Related Tags
#ansible
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#