Well now I'm more confused, because setting remote_user in ansible.cfg did 
"fix" the problem and also the documentation does list remote_user as a 
config file setting:
http://docs.ansible.com/ansible/intro_configuration.html#remote-user

If I set remote_user at the task level:

- name: Name Delegate whoami
  command: whoami
  delegate_to: box2
  remote_user: vagrant

It does not work, I still get  "ESTABLISH SSH CONNECTION FOR USER: None".

If I set remote_user at the playbook level:

- hosts: tag_hosttype_box1
  roles:
    - role: box1
  remote_user: vagrant

it does not work, I still get "ESTABLISH SSH CONNECTION FOR USER: None".

So is this a bug or am I still misunderstanding?

Kind regards

Andrew

On Tuesday, February 2, 2016 at 2:32:15 PM UTC, Brian Coca wrote:
>
> remote_user is ONLY in play or task, in ansible.cfg has a 'user' 
> option, again, all overridden by ansible_ssh_user 
>
>
>
> -- 
> Brian Coca 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/3831a1b7-2ef7-465c-8f20-0d930914223b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to