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