A simple task of listing/removing/installing a ElasticSearch plugin has got 
me baffled!  What am I missing here?

Here's my playbook:
---
- hosts: esserver
  gather_facts: false
  become: true
  become_user: root
  become_method: sudo


  tasks:

    - name: List Plugins
      shell: /usr/share/elasticsearch/bin/plugin --list



Here's the error message I'm getting:
failed: [esserver] => {"changed": true, "cmd": 
"/usr/share/elasticsearch/bin/plugin --list", "delta": "0:00:00.003698", 
"end": "2015-10-21 19:05:01.014884", "rc": 126, "start": "2015-10-21 
19:05:01.011186", "warnings": []}
stderr: /usr/share/elasticsearch/bin/plugin: 48: exec: : Permission denied

FATAL: all hosts have already failed -- aborting





I have no problems running this command in the terminal:
username@esserver:~$ /usr/share/elasticsearch/bin/plugin -l
Installed plugins:
    - marvel
    - support-diagnostics

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/6f9f20c3-826e-4c70-a1c2-9d4ceb30d71e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to