What is the scope to which |mandatory applies? It seems that debug is not one of them:
`
vars:
vi_tenant: “{{ tenant | mandatory }}”
vi_plants: “{{ plants | mandatory }}”
status: |
Provisioning tenant security:
env {{env}}
tenant {{vi_tenant}}
plants {{vi_plants}}
tasks:
- debug: var=status.split(‘\n’)
`
TASK: [debug var=status.split('\n')] ****************************************** ok: [localhost] => { "var": { "status.split('\\n')": [ "Provisioning tenant security:", "env staging", "tenant tenantA", "plants {{ plants | mandatory }}" ] } }
Why doesn’t the |mandatory fail in this case?. On top of that I am using ‘error_on_undefined_vars = True’
But that also seems to have no effect here as well.