{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/1785","repository_url":"https://api.github.com/repos/ansible/ansible-modules-extras","labels_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/1785/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/1785/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/1785/events","html_url":"https://github.com/ansible/ansible-modules-extras/issues/1785","id":138291332,"number":1785,"title":"elasticsearch_plugin - unsupported parameter name for module","user":{"login":"ksmets","id":2758297,"avatar_url":"https://avatars.githubusercontent.com/u/2758297?v=3","gravatar_id":"","url":"https://api.github.com/users/ksmets","html_url":"https://github.com/ksmets","followers_url":"https://api.github.com/users/ksmets/followers","following_url":"https://api.github.com/users/ksmets/following{/other_user}","gists_url":"https://api.github.com/users/ksmets/gists{/gist_id}","starred_url":"https://api.github.com/users/ksmets/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ksmets/subscriptions","organizations_url":"https://api.github.com/users/ksmets/orgs","repos_url":"https://api.github.com/users/ksmets/repos","events_url":"https://api.github.com/users/ksmets/events{/privacy}","received_events_url":"https://api.github.com/users/ksmets/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-03T20:41:03Z","updated_at":"2016-03-09T21:29:19Z","closed_at":null,"body":"##### Issue Type: Bug Report\r\n\r\n##### Plugin Name: elasticsearch_plugin\r\n\r\n##### Ansible Version:\r\n\r\n```\r\nansible 2.0.1.0\r\n  config file = /home/ksmets/my-ansible-playbooks/ansible.cfg\r\n  configured module search path = Default w/o override\r\n```\r\n\r\n##### Ansible Configuration:\r\n\r\ndefault\r\n\r\n##### Environment:\r\n\r\nDISTRIB_ID=Ubuntu\r\nDISTRIB_RELEASE=14.04\r\nDISTRIB_CODENAME=trusty\r\nDISTRIB_DESCRIPTION=\"Ubuntu 14.04.4 LTS\"\r\n\r\n##### Summary:\r\n\r\nUnable to run elasticsearch_plugin\r\n\r\n##### Steps To Reproduce:\r\n\r\n```\r\n- name: install elasticsearch plugins\r\n  elasticsearch_plugin: name={{ item }} state=present\r\n  with_items:\r\n  - license\r\n  - marvel-agent\r\n```\r\n\r\n##### Expected Results:\r\n\r\nInstall license and marvel-agent plugin\r\n\r\n##### Actual Results:\r\n\r\n```\r\nksmets@midgard ~/my-ansible-playbooks> env ANSIBLE_KEEP_REMOTE_FILES=1 ansible-playbook -i production site.yml --tags marvel -K --start-at-task=\"install elasticsearch plugins\"\r\nSUDO password: \r\n\r\nPLAY ***************************************************************************\r\n\r\nTASK [setup] *******************************************************************\r\nok: [bf1]\r\n\r\nTASK [marvel : install elasticsearch plugins] **********************************\r\nfailed: [bf1] => (item=license) => {\"failed\": true, \"item\": \"license\", \"module_stderr\": \"\", \"module_stdout\": \"\\r\\nTraceback (most recent call last):\\r\\n  File \\\"/home/ksmets/.ansible/tmp/ansible-tmp-1457037905.94-19611511873237/elasticsearch_plugin\\\", line 2127, in <module>\\r\\n    main()\\r\\n  File \\\"/home/ksmets/.ansible/tmp/ansible-tmp-1457037905.94-19611511873237/elasticsearch_plugin\\\", line 162, in main\\r\\n    reason = parse_error(out)\\r\\n  File \\\"/home/ksmets/.ansible/tmp/ansible-tmp-1457037905.94-19611511873237/elasticsearch_plugin\\\", line 110, in parse_error\\r\\n    return string[string.index(reason) + len(reason):].strip()\\r\\nValueError: substring not found\\r\\n\", \"msg\": \"MODULE FAILURE\", \"parsed\": false}\r\nfailed: [bf1] => (item=marvel-agent) => {\"failed\": true, \"item\": \"marvel-agent\", \"module_stderr\": \"\", \"module_stdout\": \"\\r\\nTraceback (most recent call last):\\r\\n  File \\\"/home/ksmets/.ansible/tmp/ansible-tmp-1457037907.14-176970966133302/elasticsearch_plugin\\\", line 2127, in <module>\\r\\n    main()\\r\\n  File \\\"/home/ksmets/.ansible/tmp/ansible-tmp-1457037907.14-176970966133302/elasticsearch_plugin\\\", line 162, in main\\r\\n    reason = parse_error(out)\\r\\n  File \\\"/home/ksmets/.ansible/tmp/ansible-tmp-1457037907.14-176970966133302/elasticsearch_plugin\\\", line 110, in parse_error\\r\\n    return string[string.index(reason) + len(reason):].strip()\\r\\nValueError: substring not found\\r\\n\", \"msg\": \"MODULE FAILURE\", \"parsed\": false}\r\n\r\nNO MORE HOSTS LEFT *************************************************************\r\n\tto retry, use: --limit @site.retry\r\n\r\nPLAY RECAP *********************************************************************\r\nbf1                        : ok=1    changed=0    unreachable=0    failed=1  \r\n```\r\n\r\nI also tried to run the generated python file on the remote host using both python2 and python3:\r\n\r\n```\r\nksmets@bf1 ~/.a/t/ansible-tmp-1457037256.15-177492007552570> \r\npython2 elasticsearch_plugin \r\nTraceback (most recent call last):\r\n  File \"elasticsearch_plugin\", line 2127, in <module>\r\n    main()\r\n  File \"elasticsearch_plugin\", line 162, in main\r\n    reason = parse_error(out)\r\n  File \"elasticsearch_plugin\", line 110, in parse_error\r\n    return string[string.index(reason) + len(reason):].strip()\r\n\r\nksmets@bf1 ~/.a/t/ansible-tmp-1457037256.15-177492007552570> \r\npython3 elasticsearch_plugin \r\n{\"failed\": true, \"invocation\": {\"module_args\": {\"name\": [109, 97, 114, 118, 101, 108, 45, 97, 103, 101, 110, 116], \"state\": [112, 114, 101, 115, 101, 110, 116]}}, \"msg\": \"unsupported parameter for module: b'name'\"}\r\nValueError: substring not found\r\n```\r\n\r\nSo it complains about unsupported parameter for module... Any ideas?"},"comment":{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/comments/194514109","html_url":"https://github.com/ansible/ansible-modules-extras/issues/1785#issuecomment-194514109","issue_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/1785","id":194514109,"user":{"login":"aaronthebaron","id":3069310,"avatar_url":"https://avatars.githubusercontent.com/u/3069310?v=3","gravatar_id":"","url":"https://api.github.com/users/aaronthebaron","html_url":"https://github.com/aaronthebaron","followers_url":"https://api.github.com/users/aaronthebaron/followers","following_url":"https://api.github.com/users/aaronthebaron/following{/other_user}","gists_url":"https://api.github.com/users/aaronthebaron/gists{/gist_id}","starred_url":"https://api.github.com/users/aaronthebaron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaronthebaron/subscriptions","organizations_url":"https://api.github.com/users/aaronthebaron/orgs","repos_url":"https://api.github.com/users/aaronthebaron/repos","events_url":"https://api.github.com/users/aaronthebaron/events{/privacy}","received_events_url":"https://api.github.com/users/aaronthebaron/received_events","type":"User","site_admin":false},"created_at":"2016-03-09T21:29:19Z","updated_at":"2016-03-09T21:29:19Z","body":"I think this is related to issue https://github.com/ansible/ansible-modules-extras/issues/1785\r\n\r\nLooks like there is a fix and it's merged in but hasn't shipped out yet."}}