# gather minimal facts within playbook

**URL:** <https://forum.ansible.com/t/gather-minimal-facts-within-playbook/28182>\
**Category:** Ansible Project\
**Created:** [July 27, 2018, 10:19pm UTC](https://forum.ansible.com/t/gather-minimal-facts-within-playbook/28182 "2018-07-27T22:19:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![John\_Harmon](https://avatars.discourse-cdn.com/v4/letter/j/edb3f5/32.png) [@John\_Harmon](https://forum.ansible.com/u/John_Harmon)\
**Post date:** [July 27, 2018, 10:19pm UTC](https://forum.ansible.com/t/gather-minimal-facts-within-playbook/28182/1 "2018-07-27T22:19:37Z")

</div>

I can’t see a way to do this other than via adhoc on cli… can I gather minimal facts within a playbook?

---

<div class="post-metadata">

**Author:** ![Kai\_Stian\_Olstad](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Post date:** [July 28, 2018, 10:03am UTC](https://forum.ansible.com/t/gather-minimal-facts-within-playbook/28182/2 "2018-07-28T10:03:28Z")

</div>

You can use gather\_subset on play[1].

Or set gather\_facts to no/false on the play and use the setup module[2] instead.

[1] [https://docs.ansible.com/ansible/latest/reference\_appendices/playbooks\_keywords.html#play](https://docs.ansible.com/ansible/latest/reference_appendices/playbooks_keywords.html#play)  
[2] [https://docs.ansible.com/ansible/latest/modules/setup\_module.html](https://docs.ansible.com/ansible/latest/modules/setup_module.html)
