remote_user is usable, but you need to know about precedence, it will
only work if you did NOT have an override
(ansible_user/ansible_ssh_user override it).
It is normally used to change the 'default' remote_user or the one set
in config/play/block/role containing the task.

To set a different remote user when using the variable overrides, just
set the variable for the task:


- name: Problem task
  command: "shell command"
  delegate_to: ###.###.###.###
  vars:
     ansible_ssh_user: jdoe


The vars override the keywords, but the vars are still vars and normal
variable precedence still applies.


-- 
----------
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CACVha7ceV8epar3bqhFmKVSiDnNYJb7cJ%3DNwthZ0PGZHpzNf6A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to