Hello,
I have a model/dictionary as YAML and want to define default values before
using the model in several templates.
t_default: bar
p_default: 42
cfg:
h1:
t: foo
h2:
p: 1
Now I want to prepare cfg so that cfg.h1.p == 42 and cfg.h2.t == bar
I now have to use a lot of | default filtering but like to do this only
once. As this is related to a role, I would like to put the code in a
directory of the role. As far as I understood, library may only hold action
modules.
Regards
Mirko
--
Sent from my mobile
--
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/CAK8jvqybxp8ZF-WAfUYmwBh3KKqHucU5kUqKfa95Kt93c_y-SQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.