Hi Team,
I have below template
variables:
=============
sector: test
project: test
template:-
==============
{% if ( env == 'preprod') or ( env == 'prod') %}
role_bindings:
- name: XXXXX
subjects:
- "{{k8s_sup_subjects['{{ sector }}-{{ project }}']}}"
{% else %}
role_bindings:
- name: XXXX
subjects:
- "{{k8s_sup_subjects['{{ sector }}-{{ project }}']}}"
{% endif %}
problem:
===========
i want to ignore the {{ from "{{k8s_sup_subjects['{{ sector }}-{{ project
}}']}}"
expected output
==================
- "{{k8s_sup_subjects['test-test']}}"
--
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/cdd446e5-65bd-496e-9e21-f6e5ef1b2a48n%40googlegroups.com.