# How to set instance filters for tower inventory sources in 15.0.1 collection?

**URL:** <https://forum.ansible.com/t/how-to-set-instance-filters-for-tower-inventory-sources-in-15-0-1-collection/34084>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [October 22, 2020, 2:08pm UTC](https://forum.ansible.com/t/how-to-set-instance-filters-for-tower-inventory-sources-in-15-0-1-collection/34084 "2020-10-22T14:08:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Darren\_Swart](https://avatars.discourse-cdn.com/v4/letter/d/bb73d2/32.png) [@Darren\_Swart](https://forum.ansible.com/u/Darren_Swart)\
**Post date:** [October 22, 2020, 2:08pm UTC](https://forum.ansible.com/t/how-to-set-instance-filters-for-tower-inventory-sources-in-15-0-1-collection/34084/1 "2020-10-22T14:08:18Z")

</div>

Now that instance\_filters has been removed as a parameter from the tower\_inventory\_source module how do you set the instance filter when using this module. This parameter used to accepted the inventory primary key or its named URL slug.

It was removed in this commit [https://github.com/ansible/awx/commit/f32716a0f14d1c63e9a668ed7bfba59488f5a50f#diff-6e3f61cc4874587069e86b17d99403959201389e77414d48d44e1418b8f35820](https://github.com/ansible/awx/commit/f32716a0f14d1c63e9a668ed7bfba59488f5a50f#diff-6e3f61cc4874587069e86b17d99403959201389e77414d48d44e1418b8f35820) but I don’t see any mention of it’s replacement. I see host\_filter has been added as a new parameter so maybe that is the replacement but what would the format be?

---

<div class="post-metadata">

**Author:** ![Vaibhav\_Khurana](https://avatars.discourse-cdn.com/v4/letter/v/ee59a6/32.png) [@Vaibhav\_Khurana](https://forum.ansible.com/u/Vaibhav_Khurana)\
**Post date:** [October 29, 2020, 2:42pm UTC](https://forum.ansible.com/t/how-to-set-instance-filters-for-tower-inventory-sources-in-15-0-1-collection/34084/2 "2020-10-29T14:42:33Z")

</div>

Hey Darren,

Even i am trying to figure out this part. Got any luck??

Regards,  
Vaibhav

---

<div class="post-metadata">

**Author:** ![Vaibhav\_Khurana](https://avatars.discourse-cdn.com/v4/letter/v/ee59a6/32.png) [@Vaibhav\_Khurana](https://forum.ansible.com/u/Vaibhav_Khurana)\
**Post date:** [October 29, 2020, 2:52pm UTC](https://forum.ansible.com/t/how-to-set-instance-filters-for-tower-inventory-sources-in-15-0-1-collection/34084/3 "2020-10-29T14:52:52Z")

</div>

Got this via this conversation, and it worked.  
[https://groups.google.com/g/awx-project/c/0zVfJLSPgLs/m/20TisKr4AQAJ](https://groups.google.com/g/awx-project/c/0zVfJLSPgLs/m/20TisKr4AQAJ)

Thanks anyways!

Regards,  
Vaibhav

---

<div class="post-metadata">

**Author:** ![Darren\_Swart](https://avatars.discourse-cdn.com/v4/letter/d/bb73d2/32.png) [@Darren\_Swart](https://forum.ansible.com/u/Darren_Swart)\
**Post date:** [October 29, 2020, 7:09pm UTC](https://forum.ansible.com/t/how-to-set-instance-filters-for-tower-inventory-sources-in-15-0-1-collection/34084/4 "2020-10-29T19:09:27Z")

</div>

Thanks Vaibhav I’ll give that a try.
