{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/2953","repository_url":"https://api.github.com/repos/ansible/ansible-modules-extras","labels_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/2953/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/2953/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/2953/events","html_url":"https://github.com/ansible/ansible-modules-extras/issues/2953","id":177649386,"number":2953,"title":"jenkins_plugin cannot install the plugin and giving \"Cannot get list of plugins\" error","user":{"login":"arbabnazar","id":7621775,"avatar_url":"https://avatars.githubusercontent.com/u/7621775?v=3","gravatar_id":"","url":"https://api.github.com/users/arbabnazar","html_url":"https://github.com/arbabnazar","followers_url":"https://api.github.com/users/arbabnazar/followers","following_url":"https://api.github.com/users/arbabnazar/following{/other_user}","gists_url":"https://api.github.com/users/arbabnazar/gists{/gist_id}","starred_url":"https://api.github.com/users/arbabnazar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arbabnazar/subscriptions","organizations_url":"https://api.github.com/users/arbabnazar/orgs","repos_url":"https://api.github.com/users/arbabnazar/repos","events_url":"https://api.github.com/users/arbabnazar/events{/privacy}","received_events_url":"https://api.github.com/users/arbabnazar/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/labels/affects_2.2","name":"affects_2.2","color":"5319e7"},{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/labels/bug_report","name":"bug_report","color":"fbca04"},{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/labels/waiting_on_maintainer","name":"waiting_on_maintainer","color":"ededed"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-18T12:37:33Z","updated_at":"2016-09-19T10:45:48Z","closed_at":null,"body":"<!--- Verify first that your issue/request is not already reported in GitHub -->\r\n\r\n##### ISSUE TYPE\r\n<!--- Pick one below and delete the rest: -->\r\n - Bug Report\r\n\r\n##### COMPONENT NAME\r\n<!--- jenkins_plugin-->\r\njenkins_plugin\r\n##### ANSIBLE VERSION\r\n<!--- Paste verbatim output from “ansible --version” between quotes below -->\r\n```\r\nansible 2.2.0 (devel e07b854505) last updated 2016/09/17 07:14:35 (GMT -400)\r\n  lib/ansible/modules/core: (detached HEAD 2b9300ec28) last updated 2016/09/17 07:15:26 (GMT -400)\r\n  lib/ansible/modules/extras: (detached HEAD 35210ea450) last updated 2016/09/17 07:15:30 (GMT -400)\r\n  config file = /etc/ansible/ansible.cfg\r\n  configured module search path = Default w/o overrides\r\n```\r\n\r\n##### CONFIGURATION\r\n<!---\r\nMention any settings you have changed/added/removed in ansible.cfg\r\n(or using the ANSIBLE_* environment variables).\r\n-->\r\n\r\n##### OS / ENVIRONMENT\r\n<!---\r\nMention the OS you are running Ansible from, and the OS you are\r\nmanaging, or say “N/A” for anything that is not platform-specific.\r\n-->\r\n\r\n- Ubuntu 14.04 LTS (Remote Server)\r\n- Mac OS  X 10.11.6 (Control Machine)\r\n\r\n##### SUMMARY\r\n<!--- Explain the problem briefly -->\r\njenkins_plugin : Cannot get list of plugins\r\n##### STEPS TO REPRODUCE\r\nHere is the snippet of code that generator this error:\r\n\r\n```yaml\r\n- jenkins_plugin:\r\n    name: greenballs\r\n```\r\n##### EXPECTED RESULTS\r\nIt should install the `greenballs` plugins on jenkins\r\n\r\n##### ACTUAL RESULTS\r\n\r\n```\r\nfatal: [192.168.33.110]: FAILED! => {\r\n    \"changed\": false,\r\n    \"details\": \"HTTP Error 500: Server Error\",\r\n    \"failed\": true,\r\n    \"invocation\": {\r\n        \"module_args\": {\r\n            \"backup\": null,\r\n            \"content\": null,\r\n            \"delimiter\": null,\r\n            \"directory_mode\": null,\r\n            \"follow\": false,\r\n            \"force\": false,\r\n            \"force_basic_auth\": true,\r\n            \"group\": \"jenkins\",\r\n            \"http_agent\": \"ansible-httpget\",\r\n            \"jenkins_home\": \"/var/lib/jenkins\",\r\n            \"mode\": \"0644\",\r\n            \"name\": \"greenballs\",\r\n            \"owner\": \"jenkins\",\r\n            \"params\": null,\r\n            \"regexp\": null,\r\n            \"remote_src\": null,\r\n            \"selevel\": null,\r\n            \"serole\": null,\r\n            \"setype\": null,\r\n            \"seuser\": null,\r\n            \"src\": null,\r\n            \"state\": \"present\",\r\n            \"timeout\": 30.0,\r\n            \"unsafe_writes\": null,\r\n            \"updates_expiration\": 86400,\r\n            \"updates_url\": \"https://updates.jenkins-ci.org\",\r\n            \"url\": \"http://localhost:8080\",\r\n            \"url_password\": null,\r\n            \"url_username\": null,\r\n            \"use_proxy\": true,\r\n            \"validate_certs\": true,\r\n            \"version\": null,\r\n            \"with_dependencies\": true\r\n        },\r\n        \"module_name\": \"jenkins_plugin\"\r\n    },\r\n    \"msg\": \"Cannot get list of plugins\"\r\n}\r\n```\r\n@jtyr "},"comment":{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/comments/247961835","html_url":"https://github.com/ansible/ansible-modules-extras/issues/2953#issuecomment-247961835","issue_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/2953","id":247961835,"user":{"login":"arbabnazar","id":7621775,"avatar_url":"https://avatars.githubusercontent.com/u/7621775?v=3","gravatar_id":"","url":"https://api.github.com/users/arbabnazar","html_url":"https://github.com/arbabnazar","followers_url":"https://api.github.com/users/arbabnazar/followers","following_url":"https://api.github.com/users/arbabnazar/following{/other_user}","gists_url":"https://api.github.com/users/arbabnazar/gists{/gist_id}","starred_url":"https://api.github.com/users/arbabnazar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arbabnazar/subscriptions","organizations_url":"https://api.github.com/users/arbabnazar/orgs","repos_url":"https://api.github.com/users/arbabnazar/repos","events_url":"https://api.github.com/users/arbabnazar/events{/privacy}","received_events_url":"https://api.github.com/users/arbabnazar/received_events","type":"User","site_admin":false},"created_at":"2016-09-19T10:45:48Z","updated_at":"2016-09-19T10:45:48Z","body":"@jtyr can you please provide the example of it, I am really new to this plugin. Thanks"}}
{"actor":{"display_login":"arbabnazar"}}