{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/3860","repository_url":"https://api.github.com/repos/ansible/ansible-modules-core","labels_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/3860/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/3860/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/3860/events","html_url":"https://github.com/ansible/ansible-modules-core/issues/3860","id":158369000,"number":3860,"title":"rds_param_group module requires param option although it shouldn't be required","user":{"login":"washingtoneg","id":180458,"avatar_url":"https://avatars.githubusercontent.com/u/180458?v=3","gravatar_id":"","url":"https://api.github.com/users/washingtoneg","html_url":"https://github.com/washingtoneg","followers_url":"https://api.github.com/users/washingtoneg/followers","following_url":"https://api.github.com/users/washingtoneg/following{/other_user}","gists_url":"https://api.github.com/users/washingtoneg/gists{/gist_id}","starred_url":"https://api.github.com/users/washingtoneg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/washingtoneg/subscriptions","organizations_url":"https://api.github.com/users/washingtoneg/orgs","repos_url":"https://api.github.com/users/washingtoneg/repos","events_url":"https://api.github.com/users/washingtoneg/events{/privacy}","received_events_url":"https://api.github.com/users/washingtoneg/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/affects_2.2","name":"affects_2.2","color":"5319e7"},{"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/aws","name":"aws","color":"c5def5"},{"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/bug_report","name":"bug_report","color":"fbca04"},{"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/cloud","name":"cloud","color":"c7def8"},{"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/waiting_on_maintainer","name":"waiting_on_maintainer","color":"d93f0b"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/milestones/4","html_url":"https://github.com/ansible/ansible-modules-core/milestones/2.2.0","labels_url":"https://api.github.com/repos/ansible/ansible-modules-core/milestones/4/labels","id":1756290,"number":4,"title":"2.2.0","description":"","creator":{"login":"alikins","id":15162,"avatar_url":"https://avatars.githubusercontent.com/u/15162?v=3","gravatar_id":"","url":"https://api.github.com/users/alikins","html_url":"https://github.com/alikins","followers_url":"https://api.github.com/users/alikins/followers","following_url":"https://api.github.com/users/alikins/following{/other_user}","gists_url":"https://api.github.com/users/alikins/gists{/gist_id}","starred_url":"https://api.github.com/users/alikins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alikins/subscriptions","organizations_url":"https://api.github.com/users/alikins/orgs","repos_url":"https://api.github.com/users/alikins/repos","events_url":"https://api.github.com/users/alikins/events{/privacy}","received_events_url":"https://api.github.com/users/alikins/received_events","type":"User","site_admin":false},"open_issues":42,"closed_issues":119,"state":"open","created_at":"2016-05-09T19:02:33Z","updated_at":"2016-10-05T22:03:40Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2016-06-03T13:37:02Z","updated_at":"2016-10-06T14:34:03Z","closed_at":null,"body":"##### ISSUE TYPE\r\n - Bug Report\r\n\r\n##### COMPONENT NAME\r\n`cloud/amazon/rds_param_group.py`\r\n\r\n##### ANSIBLE VERSION\r\n```\r\n $ ansible --version\r\nansible 2.2.0 (devel 273a965dcc) last updated 2016/06/02 17:32:22 (GMT -400)\r\n  lib/ansible/modules/core: (devel d952087557) last updated 2016/05/31 10:03:19 (GMT -400)\r\n  lib/ansible/modules/extras: (devel 52bee8c11e) last updated 2016/05/24 17:48:43 (GMT -400)\r\n  config file = /Users/elenawashington/.ansible.cfg\r\n  configured module search path = Default w/o overrides\r\n```\r\n\r\n##### OS / ENVIRONMENT\r\nLinux\r\n\r\n##### SUMMARY\r\n\r\nAccording to the [documentation on the `rds_param_group` module](http://docs.ansible.com/ansible/rds_param_group_module.html), the `params` options is <b>not</b> a required option. However, I am unable to create a RDS parameter group unless this option is specified.\r\n\r\n\r\n##### STEPS TO REPRODUCE\r\n<!---\r\nGiven a role where the pa\r\n-->\r\n\r\nplaybook (`aws_rds_param_group.yml`):\r\n\r\n```\r\n---\r\n\r\n- name: Create an RDS parameter group\r\n\r\n  hosts: localhost\r\n  connection: local\r\n  gather_facts: false\r\n\r\n  roles:\r\n    - aws_rds_param_group\r\n```\r\n\r\nrole (`roles/aws_rds_param_group/tasks/main.yml`):\r\n\r\n```\r\n---\r\n\r\n- rds_param_group:\r\n    state: \"{{ state }}\"\r\n    region: \"{{ region }}\"\r\n    name: \"{{ name }}\"\r\n    description: \"{{ description }}\"\r\n    engine: \"{{ engine }}\"\r\n    params: \"{{ params | default(omit) }}\"\r\n```\r\n\r\nvars (`vars/aws_rds_param_group-testing.yml`):\r\n\r\n```\r\n---\r\nstate: present\r\nregion: us-east-1\r\nname: test-param-group\r\ndescription: test RDS parameter group with default parameters\r\nengine: 'postgres9.4'\r\n```\r\n\r\n##### EXPECTED RESULTS\r\nGiven I have valid AWS IAM credentials sourced in my environment, the following command should create an RDS parameter group:\r\n\r\n```\r\n$ ansible-playbook aws_rds_param_group.yml -e @vars/aws_rds_param_group-testing.yml\r\n``` \r\n\r\n##### ACTUAL RESULTS\r\n\r\nMy playbook command fails with an error message stating that `\"Parameter params required for state='present'\"`.\r\n\r\nHere is a stacktrace for reference:\r\n```\r\n08:29 $ ansible-playbook -vvv aws_rds_param_group.yml -e @vars/aws_rds_param_group-testing.yml\r\nUsing /Users/elenawashington/Documents/work/infrastructure/ansible/ansible.cfg as config file\r\n\r\nPLAYBOOK: aws_rds_param_group.yml **********************************************\r\n1 plays in aws_rds_param_group.yml\r\n\r\nPLAY [Create an RDS parameter group] *******************************************\r\n\r\nTASK [aws_rds_param_group : rds_param_group] ***********************************\r\ntask path: /Users/elenawashington/Documents/work/infrastructure/ansible/roles/aws_rds_param_group/tasks/main.yml:3\r\nUsing module file /Users/elenawashington/scratch/ansible/lib/ansible/modules/core/cloud/amazon/rds_param_group.py\r\n<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: elenawashington\r\n<127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p \"` echo $HOME/.ansible/tmp/ansible-tmp-1464956952.2-58605292957138 `\" && echo ansible-tmp-1464956952.2-58605292957138=\"` echo $HOME/.ansible/tmp/ansible-tmp-1464956952.2-58605292957138 `\" ) && sleep 0'\r\n<127.0.0.1> PUT /var/folders/lf/52nmzzb548j9gyjbbfqx79400000gn/T/tmp91Hgfu TO /Users/elenawashington/.ansible/tmp/ansible-tmp-1464956952.2-58605292957138/rds_param_group.py\r\n<127.0.0.1> EXEC /bin/sh -c 'chmod -R u+x /Users/elenawashington/.ansible/tmp/ansible-tmp-1464956952.2-58605292957138/ && sleep 0'\r\n<127.0.0.1> EXEC /bin/sh -c 'LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/local/opt/python/bin/python2.7 /Users/elenawashington/.ansible/tmp/ansible-tmp-1464956952.2-58605292957138/rds_param_group.py; rm -rf \"/Users/elenawashington/.ansible/tmp/ansible-tmp-1464956952.2-58605292957138/\" > /dev/null 2>&1 && sleep 0'\r\nfatal: [localhost]: FAILED! => {\"changed\": false, \"failed\": true, \"invocation\": {\"module_args\": {\"aws_access_key\": null, \"aws_secret_key\": null, \"description\": \"test RDS parameter group with default parameters\", \"ec2_url\": null, \"engine\": \"postgres9.4\", \"immediate\": null, \"name\": \"test-param-group\", \"params\": null, \"profile\": null, \"region\": null, \"security_to\r\nken\": null, \"state\": \"present\", \"validate_certs\": true}, \"module_name\": \"rds_param_group\"}, \"msg\": \"Parameter params required for state='present'\"}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/comments/251981143","html_url":"https://github.com/ansible/ansible-modules-core/issues/3860#issuecomment-251981143","issue_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/3860","id":251981143,"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-10-06T14:34:03Z","updated_at":"2016-10-06T14:34:03Z","body":"@tastychutney, @scottanderson42, ping. This issue is still waiting on your response.\n[click here for bot help](https://github.com/ansible/ansibullbot/blob/master/ISSUE_HELP.md)\n<!--- boilerplate: issue_renotify_maintainer --->"}}
{"actor":{"display_login":"ansibot"}}