Hi,
is it possible in Jinja2 template to define possible values for some
variable.
Let say I have template config1.j2:
parameter1={{var1 | default(1) }}
parameter2={{var2 | default(2) }}
parameter3={{var3 | default(3) }}
So, I would like that to parameter1..3 must be assigned only values 1 or 2
or 3.
How to achieve that without using "if" statement.
Is it possible somehow to define possible values like is "default" value is
defined?
--
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/81123a5e-e354-4969-a988-f3a846618d79%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.