On Wed, 29 May 2024 07:42:37 +0200
"'Felix Fontein' via Ansible Project"
<[email protected]> 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

-- 
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/20240529154417.51e55679%40plana.

Attachment: pgpjPvkHDY87W.pgp
Description: OpenPGP digital signature

Reply via email to