Re: [ansible-project] `ansible_ssh_user` overriding `remote_user`

2014-07-31 Thread Brian Coca
you can still override it at run/play level, it is just not with remote_user, you need to set/unset ansible_ssh_user​ -- 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 em

Re: [ansible-project] `ansible_ssh_user` overriding `remote_user`

2014-07-31 Thread Michael DeHaan
It's a "can't win em all" thing. In one case, you want a way to override all behavior, in another, you want a way to set a default. In most cases, if you make a host with a given username/pass coupled to it, it means "I really really want to use this" but you could still use other host aliases if

Re: [ansible-project] `ansible_ssh_user` overriding `remote_user`

2014-07-31 Thread Brian Coca
it makes sense that the inventory variables override others, the specifics of a host should override the generalities of the plays.​ If a play has remote_user = user1, but some hosts have different users, you would not be able to use them otherwise, with inventory overriding, this is possible. --

Re: [ansible-project] `ansible_ssh_user` overriding `remote_user`

2014-07-31 Thread Serge van Ginderachter
On 31 July 2014 00:29, Michael DeHaan wrote: > OTOH, I see the reasoning of making the play stuff "beat" inventory when > set as such. ​I would have expected​ that, too, though never used this combo. Not sure why it's not like this? Brian, are you aware of a reason? BTW, while I could accept

Re: [ansible-project] `ansible_ssh_user` overriding `remote_user`

2014-07-30 Thread Brian Coca
It has always been the case that inventory 'wins' the only way to override that is redefining ansible_ssh_user (either as a var or extra_var).​ -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving

Re: [ansible-project] `ansible_ssh_user` overriding `remote_user`

2014-07-30 Thread Michael DeHaan
I believe it's intended that the inventory parameter always be used if set. I'd have to go back through the vast archives to verify the logic, but in general, usually things work the way they have evolved for concrete reasons, one of those was being able to set a reasonable default but also have e

[ansible-project] `ansible_ssh_user` overriding `remote_user`

2014-07-30 Thread Steven Ringo
Hi, I seem to be having issues when remote_user is used in conjunction with ansible_ssh_user For this playbook: - hosts: tag_application_csds tasks: - command: "whoami" remote_user: deploy register: whoami - debug: var=whoami.stdout with group_vars/tag_application_csds: