Ansible is a declarative language where you put the state of a resource, in this case you want a service to be stopped. If you were to run it again then it would just try to set the service to stopped or skip the task if it is already stopped.
This situation is a bit more difficult as Ansible is failing to stop the service for some reason, most likely the service is in use and is refusing to stop at that current point in time. You would need to look into the logs to find out why it didn't stop when Ansible asked it to. Thanks Jordan -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/31de55d1-43cd-4cc1-b6fc-c6188b12f20b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
