Have you tried below command in playbook ?

tasks:

  - shell: ps aux | grep node/bin/node

     register: ps_cmd

   - name: Show captured processes

      debug:

         var: ps_cmd.stdout



:


On Thu, Mar 3, 2022 at 11:47 AM dulhaver via Ansible Project
<[email protected]> wrote:


> showing your TASK may be helpful in order to get some feedback
>
>
> On 03.03.22 04:36, Sanjay Khatri wrote:
>
>
> Start command nohup ./bin/kibana > /dev/null 2>&1 &
>
> After execute this command have to check kibana running 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...!!!
>
> --
> 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/72c4fea6-cad6-e943-5942-c9da078e9914%40mailbox.org
> <https://groups.google.com/d/msgid/ansible-project/72c4fea6-cad6-e943-5942-c9da078e9914%40mailbox.org?utm_medium=email&utm_source=footer>
> .
>
-- 
Sent from my iPhone

-- 
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/CAGmFKDjd_n4hj9_hZeo5iycnhcTVG%2BDE%3D%2B8GP2-ai_FczJma9Q%40mail.gmail.com.

Reply via email to