---
- 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.