Unable to use Shell script for Search guard Plugin in Elastic Search with Ansible

18 views
Skip to first unread message

Bishwajit Samanta

unread,
Apr 16, 2018, 11:24:05 AM4/16/18
to Ansible Project
Hi All,

I am running a shell script for installation of Search Guard Plugin for Elastic Search. Below is the error given. If any body knows any better way for Search Guard plugin you can suggest me.

Playbook:
---------

---

- hosts: deploy
  gather_facts: no

  tasks:
    - script: /opt/search_guard.sh


Contents of search_guard.sh ::-
----------------------------------------

cd /usr/share/elasticsearch/bin

sh  ./plugin install -b com.floragunn/search-guard-2/2.4.2.9



Error:-
----------

TASK [script] ***************************************************************************************************************************
Monday 16 April 2018  20:45:02 +0530 (0:00:00.072)       0:00:00.072 **********
fatal: [192.168.56.121]: FAILED! => {"changed": true, "msg": "non-zero return code", "rc": 127, "stderr": "Shared connection to 192.168.56.121 closed.\r\n", "stdout": "/bin/sh: 1: /root/.ansible/tmp/ansible-tmp-1523891702.02-243715668987716/search_guard.sh: not found\r\n", "stdout_lines": ["/bin/sh: 1: /root/.ansible/tmp/ansible-tmp-1523891702.02-243715668987716/search_guard.sh: not found"]}


Though the script was present in the location.
Reply all
Reply to author
Forward
0 new messages