Feature #25454
open
Add ability to disable facts gathering
Added by Ondřej Pražák about 6 years ago.
Updated over 3 years ago.
Description
Description of problem:
Currently, there is no facility to disable 'facts gathering', which will be helpful in fastening the job invocation process or if users are not interested in gathering facts.
We could have a setting for 'facts gathering' for all the jobs in Settings or make it more granular and disable it only when running particular jobs.
Steps to Reproduce:
1. Disable facts gathering for a job or for all the jobs.
Actual results:
Currently, no setting which allows us to disable 'facts gathering'
Expected results:
Facts gathering is disabled for a particular job or for all the jobs.
- Subject changed from Add ability to disable facts gathering
to Add ability to disable facts gathering
Ondřej Pražák wrote:
Description of problem:
Currently, there is no facility to disable 'facts gathering', which will be helpful in fastening the job invocation process or if users are not interested in gathering facts.
We could have a setting for 'facts gathering' for all the jobs in Settings or make it more granular and disable it only when running particular jobs.
Steps to Reproduce:
1. Disable facts gathering for a job or for all the jobs.
Actual results:
Currently, no setting which allows us to disable 'facts gathering'
Expected results:
Facts gathering is disabled for a particular job or for all the jobs.
Since fact gathering occurs automatically due to the setup module being implicitly invoked at the playbook level, one way to disable this is setting `gather_facts: false` for a given play (this provides some granularity). This can also be disabled globally via this ansible.cfg setting: https://docs.ansible.com/ansible/latest/reference_appendices/config.html#default-gathering
Perhaps, this can be parameterized at the template level.
I
- Has duplicate Feature #25865: Add ability to enable or disable Ansible facts gathering added
- Triaged changed from No to Yes
Also available in: Atom
PDF