# Specific playbook actions only when host is in other hostgroup

**URL:** <https://forum.ansible.com/t/specific-playbook-actions-only-when-host-is-in-other-hostgroup/12566>\
**Category:** Ansible Project\
**Tags:** ansible-project\
**Created:** [March 23, 2013, 3:40pm UTC](https://forum.ansible.com/t/specific-playbook-actions-only-when-host-is-in-other-hostgroup/12566 "2013-03-23T15:40:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Serge\_van\_Ginderacht](https://avatars.discourse-cdn.com/v4/letter/s/b782af/32.png) [@Serge\_van\_Ginderacht](https://forum.ansible.com/u/Serge_van_Ginderacht)\
**Post date:** [March 23, 2013, 3:40pm UTC](https://forum.ansible.com/t/specific-playbook-actions-only-when-host-is-in-other-hostgroup/12566/1 "2013-03-23T15:40:27Z")

</div>

only\_if: ‘“webservers” in $group\_names’

Serge
