with_items fail condition

7 views
Skip to first unread message

Ansible User

unread,
Mar 3, 2017, 1:51:52 PM3/3/17
to Ansible Project
got a script that is trying to check to see if a path exists, both in "Program Files" and "Program Files x86" and that part works, in that I can iterate over and check both paths, but what I am having trouble doing is having it fail only when both paths don't exists. 

What I want it to do is only fail if both don't exists. Otherwise I want it to show success if either one or the other is there. Any ideas?
Reply all
Reply to author
Forward
0 new messages