Hii

While upgrading ansible we run into a deprecation warning:

[DEPRECATION WARNING]: DEFAULT_GATHER_TIMEOUT option, the
module_defaults keyword is a more generic version and can apply to all
calls to the M(ansible.builtin.gather_facts) or
M(ansible.builtin.setup) actions, use module_defaults instead. This
feature will be removed from ansible-core in version 2.18. Deprecation
warnings can be disabled by setting deprecation_warnings=False in
ansible.cfg.

This is behave we have this in ansible.cfg:

gather_timeout = 60

I intend to use the recommended module_defaults, but it is not clear
to me to what exactly this setting applies. According to
https://docs.ansible.com/ansible/latest/reference_appendices/config.html#default-gather-timeout:

"Set the timeout in seconds for the implicit fact gathering, see the
module documentation for specifics. It does not apply to user defined
ansible_collections.ansible.builtin.setup_module tasks."

If I read this correctly, DEFAULT_GATHER_TIMEOUT is only for
https://docs.ansible.com/ansible/latest/collections/ansible/builtin/gather_facts_module.html
- right?

In any case, neither pages list a default for this.

https://docs.ansible.com/ansible/9/collections/ansible/builtin/setup_module.html#parameter-gather_timeout
lists 10 seconds, but according to the line above that is something
else altogether.

So, what is the default for DEFAULT_GATHER_TIMEOUT?

thx

Dick

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAF8BbLaYQe8T9o_ggsnsoCFyCbPM5Tq4jaWMjGWTCDWv86yb6g%40mail.gmail.com.

Reply via email to