{"action":"created","issue":{"url":"https://api.github.com/repos/openshift/openshift-ansible/issues/4496","repository_url":"https://api.github.com/repos/openshift/openshift-ansible","labels_url":"https://api.github.com/repos/openshift/openshift-ansible/issues/4496/labels{/name}","comments_url":"https://api.github.com/repos/openshift/openshift-ansible/issues/4496/comments","events_url":"https://api.github.com/repos/openshift/openshift-ansible/issues/4496/events","html_url":"https://github.com/openshift/openshift-ansible/issues/4496","id":236948157,"node_id":"MDU6SXNzdWUyMzY5NDgxNTc=","number":4496,"title":"ansible_ssh_user undefined needs to be addressed.","user":{"login":"gregswift","id":372939,"node_id":"MDQ6VXNlcjM3MjkzOQ==","avatar_url":"https://avatars0.githubusercontent.com/u/372939?v=4","gravatar_id":"","url":"https://api.github.com/users/gregswift","html_url":"https://github.com/gregswift","followers_url":"https://api.github.com/users/gregswift/followers","following_url":"https://api.github.com/users/gregswift/following{/other_user}","gists_url":"https://api.github.com/users/gregswift/gists{/gist_id}","starred_url":"https://api.github.com/users/gregswift/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gregswift/subscriptions","organizations_url":"https://api.github.com/users/gregswift/orgs","repos_url":"https://api.github.com/users/gregswift/repos","events_url":"https://api.github.com/users/gregswift/events{/privacy}","received_events_url":"https://api.github.com/users/gregswift/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-06-19T16:28:48Z","updated_at":"2018-07-16T07:56:49Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"#### Description\r\n\r\nPlaybook errors out if ansible_ssh_user is not defined, which is no longer defined as of ansible 2.0. ansible_user is not the right variable either as it is null by default.\r\n\r\nSee https://github.com/ansible/ansible/issues/13669\r\n\r\n##### Version\r\n\r\nPlease put the following version information in the code block\r\nindicated below.\r\n\r\n```ansible 2.3.0.0\r\n  config file = /home/greg5320/.ansible.cfg\r\n  configured module search path = Default w/o overrides\r\n  python version = 2.7.5 (default, Nov  6 2016, 00:28:07) [GCC 4.8.5 20150623 (Red Hat 4.8.5-11)]\r\n\r\n\r\nopenshift-ansible-3.5.83-1\r\n```\r\n\r\n##### Steps To Reproduce\r\n1. Have an inventory file without ansible_ssh_user defined.\r\n2. Run `ansible-playbook -i inventory openshift-ansible/playbooks/byo/openshift-cluster/redeploy-master-certificates.yml -bkK`\r\n\r\n\r\n##### Expected Results\r\nPlaybook to run without error.\r\n\r\n##### Observed Results\r\nPlaybook fails because ansible_ssh_user is not defined.\r\n\r\n```\r\nTASK [openshift_master_certificates : Lookup default group for ansible_ssh_user] *********************************************************************************************************************************************************************************************************\r\nfatal: [master-001.ord1.prod.net]: FAILED! => {\"failed\": true, \"msg\": \"the field 'args' has an invalid value, which appears to include a variable that is undefined. The error was: 'ansible_ssh_user' is undefined\\n\\nThe error appears to have been in '/home/greg/openshift-ansible/roles/openshift_master_certificates/tasks/main.yml': line 161, column 3, but may\\nbe elsewhere in the file depending on the exact syntax problem.\\n\\nThe offending line appears to be:\\n\\n\\n- name: Lookup default group for ansible_ssh_user\\n  ^ here\\n\"}\r\n```"},"comment":{"url":"https://api.github.com/repos/openshift/openshift-ansible/issues/comments/405172464","html_url":"https://github.com/openshift/openshift-ansible/issues/4496#issuecomment-405172464","issue_url":"https://api.github.com/repos/openshift/openshift-ansible/issues/4496","id":405172464,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNTE3MjQ2NA==","user":{"login":"Bengrunt","id":5541437,"node_id":"MDQ6VXNlcjU1NDE0Mzc=","avatar_url":"https://avatars2.githubusercontent.com/u/5541437?v=4","gravatar_id":"","url":"https://api.github.com/users/Bengrunt","html_url":"https://github.com/Bengrunt","followers_url":"https://api.github.com/users/Bengrunt/followers","following_url":"https://api.github.com/users/Bengrunt/following{/other_user}","gists_url":"https://api.github.com/users/Bengrunt/gists{/gist_id}","starred_url":"https://api.github.com/users/Bengrunt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bengrunt/subscriptions","organizations_url":"https://api.github.com/users/Bengrunt/orgs","repos_url":"https://api.github.com/users/Bengrunt/repos","events_url":"https://api.github.com/users/Bengrunt/events{/privacy}","received_events_url":"https://api.github.com/users/Bengrunt/received_events","type":"User","site_admin":false},"created_at":"2018-07-16T07:56:49Z","updated_at":"2018-07-16T07:56:49Z","author_association":"NONE","body":"+1\r\n\r\nAnyone managed to circumvent this issue somehow?"}}
{"actor":{"display_login":"Bengrunt"}}