I have a task that checks if my process is listening on port 8080 and only when the exit code is not zero, would I run fail
with a message.
When the service is running, it reports that the status has changed. I want it to say ok
. What does a changed
status actually mean in Ansible ?
Best Answer
Anything that is dependent on something on the target will get the status "changed" when executed, even if it's just a shell command to echo something.
To suppress the "changed" status, you can add the following line to the task:
This and other relevant things are listed on this ansible doc page.