On 01.10.21 15:32, subbamma natla wrote:
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" ] }
If the 'when' condition, you are effectively working in python land. Here you are making probably two mistakes: - 'stdout_lines' is an array. 'stdout' is a string. - you are comparing strings to numbers -- 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 ansible-project+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/b68f4065-0bd1-181e-2a7f-f9df8a0c7545%40showmethesource.org.