mnnjkg
Last Updated: February 25, 2016
·
27.22K
· tartansandal

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
Filed Under