On Wed, 29 May 2024 07:42:37 +0200
"'Felix Fontein' via Ansible Project"
<
ansible...@googlegroups.com> wrote:
Hi all,
> > At that point copy the module into a custom one and set
> > the defaults you want.
>
> ... allow module defaults to be included instead of
> having to re-specify them in every play
> (include_module_defaults: my-defaults.yaml).
FWIW, a substitution would solve many use-cases
```yaml
- hosts: all
module_defaults: "{{ mdefaults }}"
...
```
Unfortunately, it fails:
ERROR! The field 'module_defaults' is supposed to be a
dictionary or list of dictionaries, the keys of which must
be static action, module, or group names. Only the values
may contain templates. For example: {'ping': "{{
ping_defaults }}"}
--
Vladimir Botka