Fix undefined ansible_ssh_user#8
Conversation
When ansible_ssh_user is not configured, task "Create users" fails with message "'ansible_ssh_user' is undefined". To avoid it, a simple fallback to the `$USER` environment variable is made.
|
This is a bit of a sticky issue - really the call wants to know the remote user that's being used for the Ansible call. If I'm understanding correctly, this call will lookup the user on the client. |
|
Correct. I'm new to Ansible and after some googling, this was the proposed solution. I have no problems changing the code if needed, can you point me in the right direction? |
|
I don't know the best approach. I looked at this a while ago and came up On 24 August 2016 at 17:37:33, David Kuridža (notifications@github.com)
|
|
I've taken a second to think about this from a different perspective. Is it necessary to have |
|
It's their to stop an attempt to remove the user ansible is logged in as. On 25 August 2016 at 12:48:29, David Kuridža (notifications@github.com)
|
When ansible_ssh_user is not configured, task "Create users" fails with
message "'ansible_ssh_user' is undefined". To avoid it, a simple
fallback to the
$USERenvironment variable is made.