[ansible-project] ansible variable conditional tcheck

2019-02-12 Thread Pcis
Try when: ansible_user[5] is defined -- 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 ansible-project+unsubscr...@googlegroups.com. To post to this group,

[ansible-project] ansible variable conditional tcheck

2019-02-12 Thread ryad9200000
Hi, I have a new problem, When i want test exemple: - debug: msg: "ca fonctionne" when: ansible_user[5] == true it don't works. I want show this message *"ca fonctionne"* when ansible_user[5] exist So when ansible_user == true But this syntax don't works. Thank you -- You