{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/awx/issues/1097","repository_url":"https://api.github.com/repos/ansible/awx","labels_url":"https://api.github.com/repos/ansible/awx/issues/1097/labels{/name}","comments_url":"https://api.github.com/repos/ansible/awx/issues/1097/comments","events_url":"https://api.github.com/repos/ansible/awx/issues/1097/events","html_url":"https://github.com/ansible/awx/pull/1097","id":293383892,"number":1097,"title":"Add ability to select to prefer IPv4 addresses for ansible_ssh_host","user":{"login":"rbywater","id":384963,"avatar_url":"https://avatars0.githubusercontent.com/u/384963?v=4","gravatar_id":"","url":"https://api.github.com/users/rbywater","html_url":"https://github.com/rbywater","followers_url":"https://api.github.com/users/rbywater/followers","following_url":"https://api.github.com/users/rbywater/following{/other_user}","gists_url":"https://api.github.com/users/rbywater/gists{/gist_id}","starred_url":"https://api.github.com/users/rbywater/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rbywater/subscriptions","organizations_url":"https://api.github.com/users/rbywater/orgs","repos_url":"https://api.github.com/users/rbywater/repos","events_url":"https://api.github.com/users/rbywater/events{/privacy}","received_events_url":"https://api.github.com/users/rbywater/received_events","type":"User","site_admin":false},"labels":[{"id":687169246,"url":"https://api.github.com/repos/ansible/awx/labels/component:api","name":"component:api","color":"fbca04","default":false},{"id":708663597,"url":"https://api.github.com/repos/ansible/awx/labels/state:blocked","name":"state:blocked","color":"830303","default":false},{"id":687174845,"url":"https://api.github.com/repos/ansible/awx/labels/state:needs_review","name":"state:needs_review","color":"F7FE2E","default":false},{"id":607283750,"url":"https://api.github.com/repos/ansible/awx/labels/type:enhancement","name":"type:enhancement","color":"84b6eb","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-01T02:38:35Z","updated_at":"2018-02-01T15:34:56Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/ansible/awx/pulls/1097","html_url":"https://github.com/ansible/awx/pull/1097","diff_url":"https://github.com/ansible/awx/pull/1097.diff","patch_url":"https://github.com/ansible/awx/pull/1097.patch"},"body":"##### SUMMARY\r\n<!--- Describe the change, including rationale and design decisions -->\r\nCurrently Cloudforms can return a mix of IPv4 and IPv6 addresses in the\r\nipaddresses field and this mix comes in a \"random\" order (that is the\r\nfirst entry may be IPv4 sometimes but IPv6 other times). If you wish to\r\nalways use IPv4 for the ansible_ssh_host value then this is problematic.\r\n\r\nThis change adds a new prefer_ipv4 flag which will look for the first\r\nIPv4 address in the ipaddresses list and uses that instead of just the\r\nfirst entry.\r\n\r\nUpstream PR has been made to Ansible repo as https://github.com/ansible/ansible/pull/35584\r\n\r\n<!---\r\nIf you are fixing an existing issue, please include \"related #nnn\" in your\r\ncommit message and your description; but you should still explain what\r\nthe change does.\r\n-->\r\n\r\n##### ISSUE TYPE\r\n<!--- Pick one below and delete the rest: -->\r\n - Feature Pull Request\r\n \r\n##### COMPONENT NAME\r\n<!--- Name of the module/plugin/module/task -->\r\n - API\r\n \r\n##### AWX VERSION\r\n<!--- Paste verbatim output from `make VERSION` between quotes below -->\r\n```\r\nN/A - cloudforms.py tested manually\r\n```\r\n\r\n\r\n##### ADDITIONAL INFORMATION\r\n<!---\r\nInclude additional information to help people understand the change here.\r\nFor bugs that don't have a linked bug report, a step-by-step reproduction\r\nof the problem is helpful.\r\n  -->\r\n\r\n<!--- Paste verbatim command output below, e.g. before and after your change -->\r\n```\r\n\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/awx/issues/comments/362302946","html_url":"https://github.com/ansible/awx/pull/1097#issuecomment-362302946","issue_url":"https://api.github.com/repos/ansible/awx/issues/1097","id":362302946,"user":{"login":"samdoran","id":4047861,"avatar_url":"https://avatars2.githubusercontent.com/u/4047861?v=4","gravatar_id":"","url":"https://api.github.com/users/samdoran","html_url":"https://github.com/samdoran","followers_url":"https://api.github.com/users/samdoran/followers","following_url":"https://api.github.com/users/samdoran/following{/other_user}","gists_url":"https://api.github.com/users/samdoran/gists{/gist_id}","starred_url":"https://api.github.com/users/samdoran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samdoran/subscriptions","organizations_url":"https://api.github.com/users/samdoran/orgs","repos_url":"https://api.github.com/users/samdoran/repos","events_url":"https://api.github.com/users/samdoran/events{/privacy}","received_events_url":"https://api.github.com/users/samdoran/received_events","type":"User","site_admin":false},"created_at":"2018-02-01T15:34:56Z","updated_at":"2018-02-01T15:34:56Z","author_association":"MEMBER","body":"@ryanpetrello This was merged into Ansible."}}
{"actor":{"display_login":"samdoran"}}