After execute this command have to check kibana running mode
ps aux | grep node/bin/node
If i am running manually this command it is working fine but running from ansible playbook it is not working. Please help me.
Thanks in Advance…!!!
your role uses systemd. Therefore, may be the best solution should be to have the check whether service is running in systemd service rather than in Ansible. On Ansible side then one would use only the service and systemd modules.
The following gist uses PIDFile definition by googling.