DEFAULT_GATHER_TIMEOUT deprecated - alternatives?

I’m seeing this message on running my playbooks:


[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.


I’d like to “do things the right way” and prepare for new Ansible versions, but I’m struggling to decide how to update my config/playbooks. It seems like using module_defaults requires updating all of my playbooks, whereas I can set gather_timeout in [defaults] on my ansible.cfg. We use this, for example, to swap in a “slow config” when deploying to systems with slow network connections. I don’t want to have to build a “slow config” version of each of my dozens of playbooks.

I see there was some discussion in the Google Group at https://groups.google.com/g/ansible-project/c/ZgVmYkuHj5M?pli=1 but it didn’t really go anywhere.