sorry about the error, here is the error:
fatal: [localhost]: FAILED! => {"failed": true, "msg": "The conditional
check '\"XQWATCHER_GIT_IDENTITY\" id defined' failed. The error was:
template error while templating string: expected token 'end of statement
block', got 'id'. String: {% if \"XQWATCHER_GIT_IDENTITY\" id defined %}
True {% else %} False {% endif %}\n\nThe error appears to have been in
'/Users/arbab/test-ansible/test.yml': line 8, column 7, but may\nbe
elsewhere in the file depending on the exact syntax problem.\n\nThe
offending line appears to be:\n\n tasks:\n - debug:\n ^ here\n"}
On Tue, Jun 28, 2016 at 7:02 PM, Arbab Nazar <[email protected]> wrote:
> ---
> - hosts: all
> gather_facts: no
> vars:
> XQWATCHER_GIT_IDENTITY: !!null
>
> tasks:
> - debug:
> msg: "Test Success"
> when: XQWATCHER_GIT_IDENTITY is defined
>
> Getting this error when I run the playbook
>
> ansible-playbook -i "localhost," test.yml -c local
>
>
>
> PLAY [all]
> *********************************************************************
>
> TASK [debug]
> *******************************************************************
> fatal: [localhost]: FAILED! => {"failed": true, "msg": "The conditional check
> 'XQWATCHER_GIT_IDENTITY' failed. The error was: error while evaluating
> conditional (XQWATCHER_GIT_IDENTITY): 'abc' is undefined\n\nThe error appears
> to have been in '/Users/arbab/test-ansible/test.yml': line 8, column 7, but
> may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe
> offending line appears to be:\n\n tasks:\n - debug:\n ^ here\n"}
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Ansible Project" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/ansible-project/IyrUlKnf2ew/unsubscribe.
> To unsubscribe from this group and all its topics, 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/77bd8f7a-27d5-44c7-b597-ebaa0483d414%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/77bd8f7a-27d5-44c7-b597-ebaa0483d414%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
--
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/CAMfRAg%3D3sKrCcecV_9LWERW9e%2B7Uw3p%2B7RjOVNCMoNaKxRTAOw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.