I tried installation of Head plugin through ansible, it worked out. But i 
am not able to find any way to install Search-Guard Plugin through ansible. 
I havent find any module available to install search guard plugin through 
ansible. Any idea is welcomed ..

Error given in 1st Scenario below. There is another way i tried to install 
Search -Guard Plugin that also doesnt work. I just got frustrated in 
automating it through ansible. Sorry for incomplete post.

SCENARIO:1:-
-------------------------

[root@ansible-master ansible]# ansible-playbook 6.1_ansible_el_pg.yaml

PLAY [deploy] 
***************************************************************************************************************************

TASK [deploy : Install Elastic Search Head Plugin] 
**************************************************************************************
Monday 16 April 2018 19:05:25 +0530 (0:00:00.035) 0:00:00.035 **********
ok: [192.168.56.121]

TASK [deploy : Install Elastic Search Search Guard Plugin] 
**************************************************************************************
Monday 16 April 2018 19:05:26 +0530 (0:00:00.854) 0:00:00.889 **********
fatal: [192.168.56.121]: FAILED! => {"changed": false, "err": "failed to 
download out of all possible locations..., use --verbose to get detailed 
information", "msg": "Is search-guard-2 a valid plugin name?"}
to retry, use: --limit @/root/ansible/6.1_ansible_el_pg.retry

PLAY RECAP 
******************************************************************************************************************************
192.168.56.121 : ok=1 changed=0 unreachable=0 failed=1
Monday 16 April 2018 19:05:41 +0530 (0:00:14.426) 0:00:15.316 **********

deploy : Install Elastic Search Head Plugin 
-------------------------------------------------------------------------------------
 
14.43s
deploy : Install Elastic Search Search Guard Plugin 
--------------------------------------------------------------------------------------
 
0.85s

SCENARIO: 2::
------------------------ 

Another way i tried, no luck..

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.

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-devel+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to