Hi,
I have this in our ansible.cfg:
[defaults]
gather_timeout = 60
With ansible 7, I get:
[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.
It seems that the equivalent of that single line in ansble.cfg, is that add this to every play in our playbook:
module_defaults:
ansible.builtin.setup:
gather_timeout: 60
ansible.builtin.gather_facts:
gather_timeout: 60
We have many plays, which means a lot of extra (duplicated) code.
Is there a way to set this more centrally?
Or am I missing something entirely
thx!
Dick