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.

-- 
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/43020147-23f1-4b79-96e0-035ec50770a8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to