{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/4034","repository_url":"https://api.github.com/repos/ansible/ansible-modules-core","labels_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/4034/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/4034/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/4034/events","html_url":"https://github.com/ansible/ansible-modules-core/issues/4034","id":162201315,"number":4034,"title":"postgres_user module: `role_attr_flags` does nothing when combined with `no_password_changes`","user":{"login":"woqer","id":4426659,"avatar_url":"https://avatars.githubusercontent.com/u/4426659?v=3","gravatar_id":"","url":"https://api.github.com/users/woqer","html_url":"https://github.com/woqer","followers_url":"https://api.github.com/users/woqer/followers","following_url":"https://api.github.com/users/woqer/following{/other_user}","gists_url":"https://api.github.com/users/woqer/gists{/gist_id}","starred_url":"https://api.github.com/users/woqer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/woqer/subscriptions","organizations_url":"https://api.github.com/users/woqer/orgs","repos_url":"https://api.github.com/users/woqer/repos","events_url":"https://api.github.com/users/woqer/events{/privacy}","received_events_url":"https://api.github.com/users/woqer/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/bug_report","name":"bug_report","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-06-24T18:12:27Z","updated_at":"2016-07-30T14:26:20Z","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<!--- Name of the plugin/module/task -->\r\npostgresql_user\r\n\r\n##### ANSIBLE VERSION\r\n<!--- Paste verbatim output from “ansible --version” between quotes below -->\r\n```\r\nAnsible 2.1.0.0\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\nMac OS X El Capitan, Version 10.11.4\r\nTested on Docker official postgres container and on Amazon RDS PostgreSQL DB instance\r\n##### SUMMARY\r\n<!--- Explain the problem briefly -->\r\nWhen running a task with postgres_user module, the option `role_attr_flags` does not set any role attributes when `no_password_change` is set to `yes`\r\n\r\n##### STEPS TO REPRODUCE\r\n<!---\r\nFor bugs, show exactly how to reproduce the problem.\r\nFor new features, show how the feature would be used.\r\n-->\r\nRun a task with module postgres_user, set any attribute in `role_attr_flags` and the option `no_password_changes` to `yes`\r\n\r\n<!--- Paste example playbooks or commands between quotes below -->\r\n```\r\n---\r\n- hosts: localhost\r\n\r\n  tasks:\r\n    - name: create user\r\n      postgresql_user:\r\n        name: testing_user\r\n        password: somerandompassword\r\n        state: present\r\n        login_host: your.amazon.url.to.postges.instance\r\n        login_user: yourdefaultpostgresuser\r\n        login_password: yoursecretpasswordforthedefaultuser\r\n    - name: add attributes to user\r\n      postgresql_user:\r\n        name: testing_user\r\n        no_password_changes: yes\r\n        role_attr_flags: CREATEDB\r\n        login_host: your.amazon.url.to.postges.instance\r\n        login_user: yourdefaultpostgresuser\r\n        login_password: yoursecretpasswordforthedefaultuser\r\n```\r\n\r\n<!--- You can also paste gist.github.com links for larger files -->\r\n\r\n##### EXPECTED RESULTS\r\n<!--- What did you expect to happen when running the steps above? -->\r\nThe user testing_user should have the CreateDB attribute\r\n##### ACTUAL RESULTS\r\n<!--- What actually happened? If possible run with extra verbosity (-vvvv) -->\r\nNo changes made.\r\n<!--- Paste verbatim command output between quotes below -->\r\n```\r\nPLAY [localhost] ***************************************************************\r\n\r\nTASK [setup] *******************************************************************\r\nok: [localhost]\r\n\r\nTASK [create user] *************************************************************\r\nchanged: [localhost] => {\"changed\": true, \"user\": \"test_user\"}\r\n\r\nTASK [add attributes to user] **************************************************\r\nok: [localhost] => {\"changed\": false, \"user\": \"test_user\"}\r\n\r\nPLAY RECAP *********************************************************************\r\nlocalhost                  : ok=3    changed=1    unreachable=0    failed=0\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/comments/236368039","html_url":"https://github.com/ansible/ansible-modules-core/issues/4034#issuecomment-236368039","issue_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/4034","id":236368039,"user":{"login":"ansibot","id":6585283,"avatar_url":"https://avatars.githubusercontent.com/u/6585283?v=3","gravatar_id":"","url":"https://api.github.com/users/ansibot","html_url":"https://github.com/ansibot","followers_url":"https://api.github.com/users/ansibot/followers","following_url":"https://api.github.com/users/ansibot/following{/other_user}","gists_url":"https://api.github.com/users/ansibot/gists{/gist_id}","starred_url":"https://api.github.com/users/ansibot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ansibot/subscriptions","organizations_url":"https://api.github.com/users/ansibot/orgs","repos_url":"https://api.github.com/users/ansibot/repos","events_url":"https://api.github.com/users/ansibot/events{/privacy}","received_events_url":"https://api.github.com/users/ansibot/received_events","type":"User","site_admin":false},"created_at":"2016-07-30T14:26:20Z","updated_at":"2016-07-30T14:26:20Z","body":"@ansible, ping. This issue is still waiting on your response.\n[click here for bot help](https://github.com/jctanner/ansibullbot/blob/ISSUE_TRIAGE_CLASS/ISSUE_HELP.md)\n<!--- boilerplate: issue_renotify_maintainer --->"}}
{"actor":{"display_login":"ansibot"}}