Re: [ansible-project] Output Failed even if command gets executed successfully

2017-02-06 Thread Johannes Kastl
On 06.02.17 09:27 bablu wrote: > > How to ignore failed command or in case the result set has no output. I > need the output should be success if it won't find anything relevant > mentioned in the condition. failed_when is your friend.

[ansible-project] Output Failed even if command gets executed successfully

2017-02-06 Thread bablu
How to ignore failed command or in case the result set has no output. I need the output should be success if it won't find anything relevant mentioned in the condition. /usr/bin/ansible node1 -a "grep 'value1' /tmp/test.log"Actually there in no value1 exists in test.log. However, i am