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.