https://gist.github.com/s-hertel/725ecc719b5301e76c571aca58d39bd3


søn. 8. aug. 2021 kl. 03:53 skrev Dhiwakar Ravikumar <
[email protected]>:

> This link
>
> https://docs.ansible.com/ansible/latest/user_guide/playbooks_module_defaults.html
> mentions a way to define a default for a group of modules such as aws,
> azure etc.
>
> I have a namespace.collection of modules that I've written, these are
> custom modules and I'm wondering how to achieve this for my collection of
> modules.
>
> For example. I'd like to always specify VAR1:SOME_VALUE to any task in the
> playbook using a module from my namespace.collection without writing it for
> every single task separately.
>
>   module_defaults:
>       group/MYNAMESPACE.MYCOLLECTION:
>          *VAR1: SOME_VALUE*
>
> or some equivalent but I haven't been successful so far.
>
> Thanks
> Dhiwakar
>
> --
> 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/336d2333-b70b-4327-b095-057f440db8b5n%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/336d2333-b70b-4327-b095-057f440db8b5n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CALfBRgGuG_dB%2BvTAxbk%3DMfK6PX-XsH7gU%2BKz8L%2BMrjita-LFuQ%40mail.gmail.com.

Reply via email to