# Kibana is not starting using Ansible service/command/shell module

**URL:** <https://forum.ansible.com/t/kibana-is-not-starting-using-ansible-service-command-shell-module/31473>\
**Category:** Ansible Project\
**Created:** [October 16, 2019, 9:02am UTC](https://forum.ansible.com/t/kibana-is-not-starting-using-ansible-service-command-shell-module/31473 "2019-10-16T09:02:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ansar\_Latheef](https://avatars.discourse-cdn.com/v4/letter/a/e5b9ba/32.png) [@Ansar\_Latheef](https://forum.ansible.com/u/Ansar_Latheef)\
**Post date:** [October 16, 2019, 9:02am UTC](https://forum.ansible.com/t/kibana-is-not-starting-using-ansible-service-command-shell-module/31473/1 "2019-10-16T09:02:34Z")

</div>

I am trying to start Ansible script to start Kibana service. I tried with `service`, `command`, `shell `and even with `raw `module. The task is showing Kibana is started while executing the playbook. But Kibana is not starting actually.

The stop command for kibana service is working. But not working for start. In Kibana logs, it is showing the service stop logs, but for start nothing is showing.

Please see the codes that I am using:

```auto
   - name: Starting kibana
     shell: /usr/sbin/service kibana start -k
     become: yes
     become_user: root

```

Please see the log details:

```auto
changed: [_IP_] => {
   "changed": true,
   "cmd": "/usr/sbin/service kibana start -k",
   "delta": "0:00:00.056557",
   "end": "2019-10-16 06:36:21.329033",
   "invocation": {
       "module_args": {
           "_raw_params": "/usr/sbin/service kibana start -k",
           "_uses_shell": true,
           "chdir": null,
           "creates": null,
           "executable": null,
           "removes": null,
            "stdin": null,
            "warn": true
        }
    },
    "rc": 0,
    "start": "2019-10-16 06:36:21.272476",
    "stderr": "",
    "stderr_lines": [],
    "stdout": "kibana started",
    "stdout_lines": [
        "kibana started"
    ],
    "warnings": [
        "Consider using service module rather than running service"
    ]
}

```

Please find the system details below:  
Ansible Version: `2.4.2.0`  
OS Version: `CentOS Linux release 7.5.1804 (Core)` [Both ansible and target machine]
