Not able to detach kibana service using nohup

52 views
Skip to first unread message

Aman Choudhary

unread,
Dec 24, 2021, 7:52:21 AM12/24/21
to Ansible Project
Hi Everyone, i need to start kibana service using ansible. This service can't be encoded in system services due to access issues. We are running kibana on a remote linux server. This is the shell command we are trying to use. But even after trying all the options (setsid, nohup, async poll, sourcing profile,..... ) and lot of googling, not able to achieve this. We are doing ssh from local host to remote host as XXXXXX user (not root). As soon as playbook ends, the running pid is killed. Can you please help me to achieve this somehow. I am able to execute the same command manually but not with ansible.

shell: setsid nohup sh /kibana-6.6.0/bin/kibana &

Below are my ansible version details: 
ansible [core 2.11.5]
python version = 3.8.8 (default, Apr 13 2021, 12:59:45) [Clang 10.0.0 ]
 jinja version = 2.11.3
 libyaml = True
Reply all
Reply to author
Forward
0 new messages