{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/1794","repository_url":"https://api.github.com/repos/ansible/ansible-modules-extras","labels_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/1794/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/1794/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/1794/events","html_url":"https://github.com/ansible/ansible-modules-extras/issues/1794","id":138627767,"number":1794,"title":"rabbitmq_user multiple permissions fails","user":{"login":"johnjelinek","id":873610,"avatar_url":"https://avatars.githubusercontent.com/u/873610?v=3","gravatar_id":"","url":"https://api.github.com/users/johnjelinek","html_url":"https://github.com/johnjelinek","followers_url":"https://api.github.com/users/johnjelinek/followers","following_url":"https://api.github.com/users/johnjelinek/following{/other_user}","gists_url":"https://api.github.com/users/johnjelinek/gists{/gist_id}","starred_url":"https://api.github.com/users/johnjelinek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnjelinek/subscriptions","organizations_url":"https://api.github.com/users/johnjelinek/orgs","repos_url":"https://api.github.com/users/johnjelinek/repos","events_url":"https://api.github.com/users/johnjelinek/events{/privacy}","received_events_url":"https://api.github.com/users/johnjelinek/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/labels/bug_report","name":"bug_report","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-03-05T00:56:29Z","updated_at":"2016-05-27T14:42:59Z","closed_at":null,"body":"##### Issue Type: Bug Report\r\n\r\n##### Plugin Name: rabbitmq_user\r\n\r\n##### Ansible Version: 2.0.1.0\r\n\r\n```\r\nansible 2.0.1.0\r\n  config file = ansible.cfg\r\n  configured module search path = Default w/o overrides\r\n```\r\n\r\n##### Ansible Configuration:\r\n\r\n`ansible.cfg`\r\n```\r\n[defaults]\r\nhost_key_checking = no\r\n\r\n[ssh_connection]\r\nssh_args = -o ControlMaster=auto -o ControlPersist=60s -o UserKnownHostsFile=/dev/null -o IdentitiesOnly=yes\r\n\r\n```\r\n\r\n##### Environment: OSX Yosemite\r\n\r\n##### Summary:\r\n\r\n@chrishoffman, I'm getting an error when using multiple permissions.\r\n\r\n##### Steps To Reproduce:\r\n\r\n```\r\n---\r\n- name: Create Admin\r\n# ==================\r\n  hosts: rmq[0]\r\n  become: yes\r\n  gather_facts: yes\r\n  become_method: sudo\r\n\r\n  tasks:\r\n  - name: Set the admin password\r\n    rabbitmq_user:\r\n      user: \"{{ rabbitmq_admin_user }}\"\r\n      password: \"{{ rabbitmq_admin_pass }}\"\r\n      force: true\r\n      permissions:\r\n      - vhost: /\r\n        configure_priv: .*\r\n        write_priv: .*\r\n        read_priv: .*\r\n```\r\n\r\n##### Expected Results:\r\n\r\nI expected success\r\n\r\n##### Actual Results:\r\n\r\n```\r\nfatal: [rabbitmq1]: FAILED! => {\"changed\": false, \"failed\": true, \"invocation\": {\"module_args\": {\"force\": true, \"password\": \"password\", \"privileges\": [{\"configure_priv\": \".*\", \"read_priv\": \".*\", \"vhost\": \"/\", \"write_priv\": \".*\"}], \"user\": \"admin\"}, \"module_name\": \"rabbitmq_user\"}, \"msg\": \"unsupported parameter for module: privileges\"}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/comments/222164763","html_url":"https://github.com/ansible/ansible-modules-extras/issues/1794#issuecomment-222164763","issue_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/1794","id":222164763,"user":{"login":"bnaydenov","id":1319143,"avatar_url":"https://avatars.githubusercontent.com/u/1319143?v=3","gravatar_id":"","url":"https://api.github.com/users/bnaydenov","html_url":"https://github.com/bnaydenov","followers_url":"https://api.github.com/users/bnaydenov/followers","following_url":"https://api.github.com/users/bnaydenov/following{/other_user}","gists_url":"https://api.github.com/users/bnaydenov/gists{/gist_id}","starred_url":"https://api.github.com/users/bnaydenov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bnaydenov/subscriptions","organizations_url":"https://api.github.com/users/bnaydenov/orgs","repos_url":"https://api.github.com/users/bnaydenov/repos","events_url":"https://api.github.com/users/bnaydenov/events{/privacy}","received_events_url":"https://api.github.com/users/bnaydenov/received_events","type":"User","site_admin":false},"created_at":"2016-05-27T14:42:59Z","updated_at":"2016-05-27T14:42:59Z","body":"The same behaviour also with Ansible 1.9.0.1 on Ubuntu 14.04.\r\nAnyone with the solution or workaround so far? "}}
{"actor":{"display_login":"bnaydenov"}}