# 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/12569>\
**Category:** Ansible Project\
**Tags:** ansible-project\
**Created:** [March 24, 2013, 1:02am UTC](https://forum.ansible.com/t/specific-playbook-actions-only-when-host-is-in-other-hostgroup/12569 "2013-03-24T01:02:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yves\_Dorfsman](https://avatars.discourse-cdn.com/v4/letter/y/9de0a6/32.png) [@Yves\_Dorfsman](https://forum.ansible.com/u/Yves_Dorfsman)\
**Post date:** [March 24, 2013, 1:02am UTC](https://forum.ansible.com/t/specific-playbook-actions-only-when-host-is-in-other-hostgroup/12569/1 "2013-03-24T01:02:43Z")

</div>

Totally off topic here, but I just want to point out that you can use the file module ([http://ansible.cc/docs/modules.html#file](http://ansible.cc/docs/modules.html#file)) to create sym links, and has the advantage of being idempotent.

---

<div class="post-metadata">

**Author:** ![TextEditor](https://avatars.discourse-cdn.com/v4/letter/t/a88e57/32.png) [@TextEditor](https://forum.ansible.com/u/TextEditor)\
**Post date:** [March 24, 2013, 12:53pm UTC](https://forum.ansible.com/t/specific-playbook-actions-only-when-host-is-in-other-hostgroup/12569/2 "2013-03-24T12:53:56Z")

</div>

You are right, updated my playbooks. Thanks!
