'ok' is undefined

On Mon, Aug 1, 2022 at 12:24 PM Ashok Reddy <[email protected]> wrote:

>
>
>
> ---
> - hosts: all
>   become: true
>   become_method: sudo
>   gather_facts: false
>   vars:
>     - failed: "{{ ansible_play_hosts_all | difference(ansible_play_hosts)
> }}"
>   tasks:
>     - assert:
>         that: ok | bool
>     - debug:
>         var: _failed
>
> error;
>
> TASK [assert]
> *********************************************************************************************************************************************************************************************
> fatal: [modsec-pakistan.tt040sqa3.dev.sicpa.io]: FAILED! => {"msg": "The
> conditional check 'ok | bool' failed. The error was: error while evaluating
> conditional (ok | bool): 'ok' is undefined"}
> fatal: [localhost]: FAILED! => {"msg": "The conditional check 'ok | bool'
> failed. The error was: error while evaluating conditional (ok | bool): 'ok'
> is undefined"}
>
> --
> 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/8f0640f3-5fa2-4e29-abcf-d320ccaffe2dn%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/8f0640f3-5fa2-4e29-abcf-d320ccaffe2dn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Thanks,
Abhijeet Kasurde

-- 
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/CAFwWkHobDjDHrPh19%2BZXLfedAWF%2BKq-cCLEam8jOJXj%3DZKRvjg%40mail.gmail.com.

Reply via email to