{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/20327","repository_url":"https://api.github.com/repos/ansible/ansible","labels_url":"https://api.github.com/repos/ansible/ansible/issues/20327/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/20327/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/20327/events","html_url":"https://github.com/ansible/ansible/issues/20327","id":201146767,"number":20327,"title":"iam_cert doesn't return the ARN value after creating a certificate","user":{"login":"brandond","id":370103,"avatar_url":"https://avatars.githubusercontent.com/u/370103?v=3","gravatar_id":"","url":"https://api.github.com/users/brandond","html_url":"https://github.com/brandond","followers_url":"https://api.github.com/users/brandond/followers","following_url":"https://api.github.com/users/brandond/following{/other_user}","gists_url":"https://api.github.com/users/brandond/gists{/gist_id}","starred_url":"https://api.github.com/users/brandond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brandond/subscriptions","organizations_url":"https://api.github.com/users/brandond/orgs","repos_url":"https://api.github.com/users/brandond/repos","events_url":"https://api.github.com/users/brandond/events{/privacy}","received_events_url":"https://api.github.com/users/brandond/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-01-17T00:22:52Z","updated_at":"2017-01-17T00:22:53Z","closed_at":null,"body":"_From @elnur on March 4, 2016 9:22_\n\n##### Issue Type:\n\n<!--- Please pick one and delete the rest: -->\n- Bug Report\n##### Ansible Version:\n\n```\nansible 2.0.1.0\n  config file = /etc/ansible/ansible.cfg\n  configured module search path = Default w/o overrides\n```\n##### Environment:\n\nUbuntu 14.04.4 LTS\n##### Summary:\n\nI'm using the `iam_cert` module to create a certificate to use with ELB. I've registered a variable with the results of running that module and dumped it. There's no ARN field that I need to feed to the `ec2_elb_lb` module.\n##### Steps To Reproduce:\n\n```\n- name: Upload SSL certificate\n  iam_cert:\n    name: ssl\n    state: present\n    cert: cert.pem\n    key: cert.key\n  register: ssl_certificate\n\n- debug: var=ssl_certificate\n```\n##### Expected Results:\n\nI expect the ARN field in the returned result.\n\nAWS CLI gives that information:\n\n```\n$ aws iam list-server-certificates\n{\n    \"ServerCertificateMetadataList\": [\n        {\n            \"ServerCertificateId\": \"AS...SU\", \n            \"ServerCertificateName\": \"ssl\", \n            \"Expiration\": \"2025-11-16T12:52:40Z\", \n            \"Path\": \"/\", \n            \"Arn\": \"arn:aws:iam::4...9:server-certificate/ssl\", \n            \"UploadDate\": \"2016-03-03T21:46:09Z\"\n        }\n    ]\n}\n```\n\nSo the info is there, but Ansible doesn't use it.\n##### Actual Results:\n\n```\nok: [localhost] => {\n    \"ssl_certificate\": {\n        \"cert_body\": \"-----BEGIN CERTIFICATE-----\\n...\\n-----END CERTIFICATE-----\", \n        \"cert_path\": \"/\", \n        \"changed\": false, \n        \"expiration_date\": \"2025-11-16T12:52:40Z\", \n        \"msg\": \"No new path or name specified. No changes made\", \n        \"name\": \"ssl\", \n        \"upload_date\": \"2016-03-03T21:46:09Z\"\n    }\n}\n```\n\n\n_Copied from original issue: ansible/ansible-modules-core#3183_"},"comment":{"url":"https://api.github.com/repos/ansible/ansible/issues/comments/272991180","html_url":"https://github.com/ansible/ansible/issues/20327#issuecomment-272991180","issue_url":"https://api.github.com/repos/ansible/ansible/issues/20327","id":272991180,"user":{"login":"brandond","id":370103,"avatar_url":"https://avatars.githubusercontent.com/u/370103?v=3","gravatar_id":"","url":"https://api.github.com/users/brandond","html_url":"https://github.com/brandond","followers_url":"https://api.github.com/users/brandond/followers","following_url":"https://api.github.com/users/brandond/following{/other_user}","gists_url":"https://api.github.com/users/brandond/gists{/gist_id}","starred_url":"https://api.github.com/users/brandond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brandond/subscriptions","organizations_url":"https://api.github.com/users/brandond/orgs","repos_url":"https://api.github.com/users/brandond/repos","events_url":"https://api.github.com/users/brandond/events{/privacy}","received_events_url":"https://api.github.com/users/brandond/received_events","type":"User","site_admin":false},"created_at":"2017-01-17T00:22:53Z","updated_at":"2017-01-17T00:22:53Z","body":"_From @RajeevNambiar on March 13, 2016 4:49_\n\n+1\n"}}
{"actor":{"display_login":"brandond"}}