Hi All,
My variable file:
VISEBS_SYSTEM: password
My yaml.file:
I'll be passing a argument to my playbook as -e "src=VISEBS", in my
playbook i am trying to get dynamically the VISEBS_SYSTEM value. any
suggestions
- include_vars: variable_file
- debug:
msg: "{{ '{{src}}_SYSTEM' }}"
as {{src}} will be replaced by VISEBS, i'm thinking that it will transform
to {{VISEBS_SYSTEM}} which will finally print "password", but its not
happening what is the
exact way to achieve this.
--
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/618911e9-7de3-475a-868f-6117e2a0cf6e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.