Ansible – exclude host from playbook execution
By using – limit argument with ansible-playbook command we can exclude a host from playbook execution. If hostname starts with “!” it will excluded from host execution. Lets say if we want to exclude host1 and host2 from ansible-playbook execution…