{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/3151","repository_url":"https://api.github.com/repos/ansible/ansible-modules-core","labels_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/3151/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/3151/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/3151/events","html_url":"https://github.com/ansible/ansible-modules-core/issues/3151","id":137455404,"number":3151,"title":"Issue with aws rds module - returned endpoint address has a bunch of asterisks.","user":{"login":"sarlindo","id":6406166,"avatar_url":"https://avatars.githubusercontent.com/u/6406166?v=3","gravatar_id":"","url":"https://api.github.com/users/sarlindo","html_url":"https://github.com/sarlindo","followers_url":"https://api.github.com/users/sarlindo/followers","following_url":"https://api.github.com/users/sarlindo/following{/other_user}","gists_url":"https://api.github.com/users/sarlindo/gists{/gist_id}","starred_url":"https://api.github.com/users/sarlindo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sarlindo/subscriptions","organizations_url":"https://api.github.com/users/sarlindo/orgs","repos_url":"https://api.github.com/users/sarlindo/repos","events_url":"https://api.github.com/users/sarlindo/events{/privacy}","received_events_url":"https://api.github.com/users/sarlindo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-01T03:21:34Z","updated_at":"2016-04-19T14:37:43Z","closed_at":null,"body":"## Environment \r\nAnsible 2.0.0.2\r\nUbuntu 14.03\r\nAWS\r\n\r\n## The issue\r\n\r\nI am trying to create an AWS RDS service and then write out the endpoint address to a file, but for some reason once the RDS service is available the endpoint address retrieved from the registered variable has a bunch of asterisks in the name?\r\n\r\n### playbook\r\n````\r\n tasks:\r\n  - name: Launch RDS instances\r\n    rds:\r\n      region: \"{{ ec2_region }}\"\r\n      ec2_access_key: \"{{ ec2_access_key }}\"\r\n      ec2_secret_key: \"{{ ec2_secret_key }}\"\r\n      command: create\r\n      instance_name: oraclelinkstardb\r\n      db_engine: oracle-se\r\n      instance_type: db.t2.micro\r\n      username: linkstar\r\n      password: xxxxx\r\n      size: 10\r\n      wait: yes\r\n      wait_timeout: 2000\r\n      vpc_security_groups: sg-7ab71302\r\n      tags:\r\n        Environment: dev\r\n        Application: linkstar\r\n    with_items: ec2_instances\r\n    register: rds_result\r\n\r\n  - name: write rds host info to file\r\n    local_action:\r\n      module: copy\r\n      content: \"{{ item.instance.endpoint }}\"\r\n      dest: ./files/rdsendpoint.txt\r\n    with_items: \"{{ rds_result.results|default([]) }}\"\r\n````\r\n### PlayBook Output\r\n\r\n````\r\nTASK [write rds host info to file] *********************************************\r\ntask path: /home/arlindo/projects/aws/provision.yml:37\r\nESTABLISH LOCAL CONNECTION FOR USER: arlindo\r\nlocalhost EXEC rc=flag; [ -r ./files/rdsendpoint.txt ] || rc=2; [ -f ./files/rdsendpoint.txt ] || rc=1; [ -d ./files/rdsendpoint.txt ] && rc=3; python -V 2>/dev/null || rc=4; [ x\"$rc\" != \"xflag\" ] && echo \"${rc}  \"./files/rdsendpoint.txt && exit 0; (python -c 'import hashlib; BLOCKSIZE = 65536; hasher = hashlib.sha1();\r\nafile = open(\"'./files/rdsendpoint.txt'\", \"rb\")\r\nbuf = afile.read(BLOCKSIZE)\r\nwhile len(buf) > 0:\r\n\thasher.update(buf)\r\n\tbuf = afile.read(BLOCKSIZE)\r\nafile.close()\r\nprint(hasher.hexdigest())' 2>/dev/null) || (python -c 'import sha; BLOCKSIZE = 65536; hasher = sha.sha();\r\nafile = open(\"'./files/rdsendpoint.txt'\", \"rb\")\r\nbuf = afile.read(BLOCKSIZE)\r\nwhile len(buf) > 0:\r\n\thasher.update(buf)\r\n\tbuf = afile.read(BLOCKSIZE)\r\nafile.close()\r\nprint(hasher.hexdigest())' 2>/dev/null) || (echo '0  './files/rdsendpoint.txt)\r\nlocalhost EXEC ( umask 22 && mkdir -p \"$( echo $HOME/.ansible/tmp/ansible-tmp-1456801607.23-107237530777852 )\" && echo \"$( echo $HOME/.ansible/tmp/ansible-tmp-1456801607.23-107237530777852 )\" )\r\nlocalhost PUT /tmp/tmpBne1eN TO /home/arlindo/.ansible/tmp/ansible-tmp-1456801607.23-107237530777852/source\r\nlocalhost EXEC ( umask 22 && mkdir -p \"$( echo $HOME/.ansible/tmp/ansible-tmp-1456801607.24-41001705013681 )\" && echo \"$( echo $HOME/.ansible/tmp/ansible-tmp-1456801607.24-41001705013681 )\" )\r\nlocalhost PUT /tmp/tmpEMzg0F TO /home/arlindo/.ansible/tmp/ansible-tmp-1456801607.24-41001705013681/copy\r\nlocalhost EXEC LANG=en_CA.UTF-8 LC_ALL=en_CA.UTF-8 LC_MESSAGES=en_CA.UTF-8 /usr/bin/python /home/arlindo/.ansible/tmp/ansible-tmp-1456801607.24-41001705013681/copy; rm -rf \"/home/arlindo/.ansible/tmp/ansible-tmp-1456801607.24-41001705013681/\" > /dev/null 2>&1\r\nchanged: [localhost -> localhost] => (item={'invocation': {'module_name': u'rds', u'module_args': {u'profile': None, u'db_engine': u'oracle-se', u'iops': None, u'publicly_accessible': None, u'ec2_url': None, u'backup_retention': None, u'port': None, u'security_groups': None, u'size': 10, u'aws_secret_key': u'VALUE_SPECIFIED_IN_NO_LOG_PARAMETER', u'subnet': None, u'vpc_security_groups': [u'sg-7ab71302'], u'upgrade': False, u'zone': None, u'source_instance': None, u'parameter_group': None, u'command': u'create', u'multi_zone': False, u'new_instance_name': None, u'username': u'VALUE_SPECIFIED_IN_NO_LOG_PARAMETER', u'tags': {u'Environment': u'dev', u'Application': u'VALUE_SPECIFIED_IN_NO_LOG_PARAMETER'}, u'character_set_name': None, u'db_name': None, u'license_model': None, u'ec2_access_key': u'', u'ec2_secret_key': u'VALUE_SPECIFIED_IN_NO_LOG_PARAMETER', u'apply_immediately': False, u'wait': True, u'aws_access_key': u'', u'security_token': None, u'force_failover': False, u'maint_window': None, u'region': u'us-east-1', u'option_group': None, u'engine_version': None, u'instance_name': u'oracle********db', u'instance_type': u'db.t2.micro', u'password': u'VALUE_SPECIFIED_IN_NO_LOG_PARAMETER', u'wait_timeout': 2000, u'snapshot': None, u'backup_window': None, u'validate_certs': True}}, u'instance': {u'status': u'available', u'username': u'VALUE_SPECIFIED_IN_NO_LOG_PARAMETER', u'vpc_security_groups': u'sg-7ab71302', u'endpoint': u'oracle********db.cgxmjxhypelr.us-east-1.rds.amazonaws.com', u'availability_zone': u'us-east-1e', u'port': 1521, u'replication_source': None, u'instance_type': u'db.t2.micro', u'iops': None, u'create_time': 1456801030.478, u'backup_retention': 1, u'multi_zone': False, u'id': u'oracle********db', u'maintenance_window': u'mon:09:02-mon:09:32'}, u'changed': True, '_ansible_no_log': False, 'item': {u'group': [u'web', u'winrdp', u'default'], u'count_tag': {u'Name': u'webwin'}, u'exact_count': 1, u'instance_type': u't2.micro', u'keypair': u'ansible', u'instance_tags': {u'Name': u'webwin'}, u'image': u'ami-42596f28'}}) => {\"changed\": true, \"checksum\": \"92761a1042a66cf97c67626d7a307b6e4342f8c4\", \"dest\": \"./files/rdsendpoint.txt\", \"gid\": 1000, \"group\": \"arlindo\", \"invocation\": {\"module_args\": {\"backup\": false, \"content\": \"VALUE_SPECIFIED_IN_NO_LOG_PARAMETER\", \"delimiter\": null, \"dest\": \"./files/rdsendpoint.txt\", \"directory_mode\": null, \"follow\": false, \"force\": true, \"group\": null, \"mode\": null, \"original_basename\": \"tmpBne1eN\", \"owner\": null, \"regexp\": null, \"remote_src\": null, \"selevel\": null, \"serole\": null, \"setype\": null, \"seuser\": null, \"src\": \"/home/arlindo/.ansible/tmp/ansible-tmp-1456801607.23-107237530777852/source\", \"validate\": null}}, \"item\": {\"_ansible_no_log\": false, \"changed\": true, \"instance\": {\"availability_zone\": \"us-east-1e\", \"backup_retention\": 1, \"create_time\": 1456801030.478, \"endpoint\": \"oracle********db.cgxmjxhypelr.us-east-1.rds.amazonaws.com\", \"id\": \"oracle********db\", \"instance_type\": \"db.t2.micro\", \"iops\": null, \"maintenance_window\": \"mon:09:02-mon:09:32\", \"multi_zone\": false, \"port\": 1521, \"replication_source\": null, \"status\": \"available\", \"username\": \"VALUE_SPECIFIED_IN_NO_LOG_PARAMETER\", \"vpc_security_groups\": \"sg-7ab71302\"}, \"invocation\": {\"module_args\": {\"apply_immediately\": false, \"aws_access_key\": \"\", \"aws_secret_key\": \"VALUE_SPECIFIED_IN_NO_LOG_PARAMETER\", \"backup_retention\": null, \"backup_window\": null, \"character_set_name\": null, \"command\": \"create\", \"db_engine\": \"oracle-se\", \"db_name\": null, \"ec2_access_key\": \"\", \"ec2_secret_key\": \"VALUE_SPECIFIED_IN_NO_LOG_PARAMETER\", \"ec2_url\": null, \"engine_version\": null, \"force_failover\": false, \"instance_name\": \"oracle********db\", \"instance_type\": \"db.t2.micro\", \"iops\": null, \"license_model\": null, \"maint_window\": null, \"multi_zone\": false, \"new_instance_name\": null, \"option_group\": null, \"parameter_group\": null, \"password\": \"VALUE_SPECIFIED_IN_NO_LOG_PARAMETER\", \"port\": null, \"profile\": null, \"publicly_accessible\": null, \"region\": \"us-east-1\", \"security_groups\": null, \"security_token\": null, \"size\": 10, \"snapshot\": null, \"source_instance\": null, \"subnet\": null, \"tags\": {\"Application\": \"VALUE_SPECIFIED_IN_NO_LOG_PARAMETER\", \"Environment\": \"dev\"}, \"upgrade\": false, \"username\": \"VALUE_SPECIFIED_IN_NO_LOG_PARAMETER\", \"validate_certs\": true, \"vpc_security_groups\": [\"sg-7ab71302\"], \"wait\": true, \"wait_timeout\": 2000, \"zone\": null}, \"module_name\": \"rds\"}, \"item\": {\"count_tag\": {\"Name\": \"webwin\"}, \"exact_count\": 1, \"group\": [\"web\", \"winrdp\", \"default\"], \"image\": \"ami-42596f28\", \"instance_tags\": {\"Name\": \"webwin\"}, \"instance_type\": \"t2.micro\", \"keypair\": \"ansible\"}}, \"md5sum\": \"aa41800bfab755d8f1787ea90e7f0233\", \"mode\": \"0664\", \"owner\": \"arlindo\", \"size\": 57, \"src\": \"/home/arlindo/.ansible/tmp/ansible-tmp-1456801607.23-107237530777852/source\", \"state\": \"file\", \"uid\": 1000}\r\n\r\n````"},"comment":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/comments/211951480","html_url":"https://github.com/ansible/ansible-modules-core/issues/3151#issuecomment-211951480","issue_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/3151","id":211951480,"user":{"login":"bgeesaman","id":3769609,"avatar_url":"https://avatars.githubusercontent.com/u/3769609?v=3","gravatar_id":"","url":"https://api.github.com/users/bgeesaman","html_url":"https://github.com/bgeesaman","followers_url":"https://api.github.com/users/bgeesaman/followers","following_url":"https://api.github.com/users/bgeesaman/following{/other_user}","gists_url":"https://api.github.com/users/bgeesaman/gists{/gist_id}","starred_url":"https://api.github.com/users/bgeesaman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bgeesaman/subscriptions","organizations_url":"https://api.github.com/users/bgeesaman/orgs","repos_url":"https://api.github.com/users/bgeesaman/repos","events_url":"https://api.github.com/users/bgeesaman/events{/privacy}","received_events_url":"https://api.github.com/users/bgeesaman/received_events","type":"User","site_admin":false},"created_at":"2016-04-19T14:37:43Z","updated_at":"2016-04-19T14:37:43Z","body":"Is this because \"linkstar\", your username that is a VALUE_SPECIFIED_IN_NO_LOG_PARAMETER, appears in your RDS instance name?  I think you could get around this by either altering the username or the RDS instance name so that the username is not contained in anything else."}}