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
--
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/CAF8BbLZcuYeZFBC04eWqM0ECnbsAey6_yviT3jHxERkVd0SB9Q%40mail.gmail.com.