# Disable fact gathering as a command line option

**URL:** <https://forum.ansible.com/t/disable-fact-gathering-as-a-command-line-option/28327>\
**Category:** Ansible Project\
**Created:** [August 14, 2018, 12:12pm UTC](https://forum.ansible.com/t/disable-fact-gathering-as-a-command-line-option/28327 "2018-08-14T12:12:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jad\_Baz](https://avatars.discourse-cdn.com/v4/letter/j/ce73a5/32.png) [@Jad\_Baz](https://forum.ansible.com/u/Jad_Baz)\
**Post date:** [August 14, 2018, 12:12pm UTC](https://forum.ansible.com/t/disable-fact-gathering-as-a-command-line-option/28327/1 "2018-08-14T12:12:48Z")

</div>

Is there a way to disable fact gathering at the command line?  
I couldn’t find this anywhere in the docs.

As a use case, I sometimes want to run a tag with two or 3 tasks that don’t require fact gathering and I don’t want to disable it on a playbook level.  
Maybe there is something I’m missing, please let me know if I’m thinking about this correctly.

---

<div class="post-metadata">

**Author:** ![S\_C\_Rigler](https://avatars.discourse-cdn.com/v4/letter/s/eb9ed0/32.png) [@S\_C\_Rigler](https://forum.ansible.com/u/S_C_Rigler)\
**Post date:** [August 14, 2018, 12:38pm UTC](https://forum.ansible.com/t/disable-fact-gathering-as-a-command-line-option/28327/2 "2018-08-14T12:38:59Z")

</div>

Hi Jad,

“ANSIBLE\_GATHERING” environment variable has same function as “gathering” ansible.cfg option:

[https://docs.ansible.com/ansible/latest/reference\_appendices/config.html#default-gathering](https://docs.ansible.com/ansible/latest/reference_appendices/config.html#default-gathering)

---

<div class="post-metadata">

**Author:** ![Jad\_Baz](https://avatars.discourse-cdn.com/v4/letter/j/ce73a5/32.png) [@Jad\_Baz](https://forum.ansible.com/u/Jad_Baz)\
**Post date:** [August 14, 2018, 12:46pm UTC](https://forum.ansible.com/t/disable-fact-gathering-as-a-command-line-option/28327/3 "2018-08-14T12:46:46Z")

</div>

Yes, this is exactly what I was looking for.  
Thanks
