Hello Shashank,
This statement is getting failed because you didn't use double quotes (" ")
in your command.
The correct syntax to use this statement is:
when: "{{happened}} | bool == true"
Thanks
Soniya
On Thursday, July 11, 2019 at 6:04:32 PM UTC+5:30, Shashank Dutt Jha wrote:
>
> I have defined variable
> happened: true
>
> When am trying to use this variable in task in conditional when clause it
> failed
> when: {{happened}} | bool == true it gives error.
>
> what is the correct syntax to use it?
>
--
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/e8f6297e-17fc-4796-8b00-904351a23298%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.