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.ymlWritten by Kal Hodgson
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ansible
Authors
Misha Behersky
79.79K
tartansandal
73.67K
Related Tags
#ansible
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#