Use synchronize module with user different than ansible_ssh_user

My playbook consists of two steps:

  • Setup remote user (one of possibly many), and do stuff that require root
  • Login to this user and do rest without privileges

It seems that synchronize module doesn’t play well with it. It seems that it tries to login to ansible_ssh_user despite the fact that I specified remote_user. This might be a bug, or just simple misunderstanding from mu side. In any case could you please tell me how to make it work?

Here is excerpt from the playbook:

What is “ansible --version” ?

I use current version:

$ ansible --version
ansible 1.4

PS. I somehow missed your response.

W dniu poniedziałek, 25 listopada 2013 19:45:02 UTC+1 użytkownik Michael DeHaan napisał: