Project

General

Profile

Feature #25454

Add ability to disable facts gathering

Added by Ondřej Pražák almost 2 years ago. Updated almost 2 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:

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.

History

#1 Updated by Paul Calabro almost 2 years ago

  • 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

Also available in: Atom PDF