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: ###.###.###.###
     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 post to this group, send email to
To view this discussion on the web visit
For more options, visit

Reply via email to