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: