When running ansible playbooks you do often encounter use-cases where a task (usually shell or command) is expected to return error codes.
So far the solution was to register the result and to add ignore_errors: true
and to decide later if it was a real error or not.
Now, there is one issue with this: it will mess the logging as you will see red error like
fatal: ...
...ignoring
Is there a way to avoid these so we would not have fake errors in the logs?