I'm running into trouble to find the answer that how to negate the conditional with regex. Something like below:
- debug: msg="{{ Hello World}}" when: - test.rc !=0 - test.stderr | find ('(No Such File or Directory)') - debug: msg="{{ Hello Friend}}" when: - test.rc !=0 - <would like to use negate of "test.stderr | find ('(No Such File or Directory)')"> Looking for the expert help on this ! Thanks -- 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, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/0c9ff81e-9fb1-4665-92fa-7e281c1d46a3%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.