when: htop_is_running.stdout == '0' did not work
command: pgrep httpd
My question is why the following not working
when: status_httpd.stdout_lines == 0
ok: [mhost1] => {
"status_httpd.stdout_lines": [
"0"
]
}
Thanks
On Friday, October 1, 2021 at 9:14:27 AM UTC-4 Sandip Bhattacharya wrote:
>
> > What's wrong with asserting that the service should be started?
> >
> > - systemd:
> > name: httpd
> > state: started
> >
>
> For the vast majority of cases that should work (the apache service in
> major
> distros being such a case).
>
> Sometimes you do get an edge case where the PID check in the unit file is
> not a
> good enough check for the health of the service as a whole.
>
> - Sandip
>
> --
> https://blog.sandipb.net
> https://twitter.com/sandipb
>
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/36d3de17-695a-43a8-b19a-dbf3ac3c91ffn%40googlegroups.com.