{"action":"opened","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/39771","repository_url":"https://api.github.com/repos/ansible/ansible","labels_url":"https://api.github.com/repos/ansible/ansible/issues/39771/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/39771/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/39771/events","html_url":"https://github.com/ansible/ansible/issues/39771","id":320522401,"number":39771,"title":"iam_role module doesn't update 'Description' field of existing roles","user":{"login":"ichekaldin","id":39010411,"avatar_url":"https://avatars0.githubusercontent.com/u/39010411?v=4","gravatar_id":"","url":"https://api.github.com/users/ichekaldin","html_url":"https://github.com/ichekaldin","followers_url":"https://api.github.com/users/ichekaldin/followers","following_url":"https://api.github.com/users/ichekaldin/following{/other_user}","gists_url":"https://api.github.com/users/ichekaldin/gists{/gist_id}","starred_url":"https://api.github.com/users/ichekaldin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ichekaldin/subscriptions","organizations_url":"https://api.github.com/users/ichekaldin/orgs","repos_url":"https://api.github.com/users/ichekaldin/repos","events_url":"https://api.github.com/users/ichekaldin/events{/privacy}","received_events_url":"https://api.github.com/users/ichekaldin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-05T16:29:16Z","updated_at":"2018-05-05T16:29:16Z","closed_at":null,"author_association":"NONE","body":"<!---\r\nVerify first that your issue/request is not already reported on GitHub.\r\nTHIS FORM WILL BE READ BY A MACHINE, COMPLETE ALL SECTIONS AS DESCRIBED.\r\nAlso test if the latest release, and devel branch are affected too.\r\nALWAYS add information AFTER (OUTSIDE) these html comments.\r\nOtherwise it may end up being automatically closed by our bot. -->\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<!--- Insert, BELOW THIS COMMENT, the name of the module, plugin, task or feature.\r\nDo not include extra details here, e.g. \"vyos_command\" not \"the network module vyos_command\" or the full path-->\r\niam_role module\r\n\r\n##### ANSIBLE VERSION\r\n<!--- Paste, BELOW THIS COMMENT, verbatim output from \"ansible --version\" between quotes below -->\r\n```\r\nansible 2.5.0\r\n  config file = /etc/ansible/ansible.cfg\r\n  configured module search path = [u'/usr/share/ansible/plugins/modules']\r\n  ansible python module location = /usr/lib/python2.7/dist-packages/ansible\r\n  executable location = /usr/bin/ansible\r\n  python version = 2.7.12 (default, Dec  4 2017, 14:50:18) [GCC 5.4.0 20160609]\r\n```\r\n\r\n##### CONFIGURATION\r\n<!--- If using Ansible 2.4 or above, paste, BELOW THIS COMMENT, the results of \"ansible-config dump --only-changed\"\r\nOtherwise, mention any settings you have changed/added/removed in ansible.cfg\r\n(or using the ANSIBLE_* environment variables).-->\r\nN/A\r\n\r\n##### OS / ENVIRONMENT\r\n<!--- Mention, BELOW THIS COMMENT, 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\nAlso mention the specific version of what you are trying to control,\r\ne.g. if this is a network bug the version of firmware on the network device.-->\r\nN/A\r\n\r\n##### SUMMARY\r\n<!--- Explain the problem briefly -->\r\n#32582 added support for Description parameter to iam_role module. However, this parameter is only set when new role is created. The module does not update Description parameter when the IAM role already exists.\r\n\r\n##### STEPS TO REPRODUCE\r\n<!--- For bugs, show exactly how to reproduce the problem, using a minimal test-case.\r\nFor new features, show how the feature would be used. -->\r\n\r\n<!--- Paste example playbooks or commands between quotes below -->\r\nCreate an IAM role, with or without description:\r\n```yaml\r\n- iam_role:\r\n    name: myrole\r\n    description: My role description\r\n    assume_role_policy_document: \"{{ lookup('file','policy.json') }}\"\r\n    state: present\r\n```\r\nThen try to update the description:\r\n```yaml\r\n- iam_role:\r\n    name: myrole\r\n    description: My new role description\r\n    assume_role_policy_document: \"{{ lookup('file','policy.json') }}\"\r\n    state: present\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\nRole description is updated to the new value\r\n\r\n##### ACTUAL RESULTS\r\n<!--- What actually happened? If possible run with extra verbosity (-vvvv) -->\r\nRole description does not change\r\n"}}
{"actor":{"display_login":"ichekaldin"}}