I've seen this behaviour quite often when a service scripts 'status'
command isn't written properly.
'service thingy status' is supposed to return true or false (and
optionally print some sort of readable message),
and _loads_ tend to return the wrong exit code.
You can work around it by falling back to grepping ps - see the
'pattern' clause on service: .
On 24 March 2014 23:20, James Goodhouse <
jamg...@gmail.com> wrote:
> Hey Adam,
>
> Thanks for the reply!
>
> I'm running Ansible 1.5.3 and am running the task again Ubuntu 12.04. When I
> say re-provision, I mean re-running the task.
>
> The way I'm killing the service is logging into the box and running "service
> varnish stop". If I subsequently run the command "service varnish status" it
> shows it as stopped.
>
> Thanks for the tip on using the enabled flag - I'm using it but left it off
> --
> 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
ansible-proje...@googlegroups.com.
> To post to this group, send email to
ansible...@googlegroups.com.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/ansible-project/2e528799-6dc3-4272-9054-4518bc7a7696%40googlegroups.com.
>
> For more options, visit
https://groups.google.com/d/optout.