# Removing an host out of playbook execution

**URL:** <https://forum.ansible.com/t/removing-an-host-out-of-playbook-execution/12832>\
**Category:** Ansible Project\
**Tags:** ansible-project\
**Created:** [May 20, 2013, 3:13pm UTC](https://forum.ansible.com/t/removing-an-host-out-of-playbook-execution/12832 "2013-05-20T15:13:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_DeHaan2](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Post date:** [May 20, 2013, 3:13pm UTC](https://forum.ansible.com/t/removing-an-host-out-of-playbook-execution/12832/1 "2013-05-20T15:13:21Z")

</div>

Something like this will take it out of rotation for all remaining plays:

# note that I’m assuming False shouldn’t be a String here

tasks:

- fail: msg=“missing IP address on host”  
when: not myswitch.ipaddr
