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.


[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: []

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: []: 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

****************************************************************************************************************************** : 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 
deploy : Install Elastic Search Search Guard Plugin 


Another way i tried, no luck..



- hosts: deploy
  gather_facts: no

    - script: /opt/search_guard.sh

Contents of search_guard.sh ::-

cd /usr/share/elasticsearch/bin

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


TASK [script] 
Monday 16 April 2018  20:45:02 +0530 (0:00:00.072)       0:00:00.072 
fatal: []: FAILED! => {"changed": true, "msg": "non-zero 
return code", "rc": 127, "stderr": "Shared connection to 
closed.\r\n", "stdout": "/bin/sh: 1: 
not found\r\n", "stdout_lines": ["/bin/sh: 1: 
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