# Use synchronize module with user different than ansible\_ssh\_user

**URL:** <https://forum.ansible.com/t/use-synchronize-module-with-user-different-than-ansible-ssh-user/13992>\
**Category:** Ansible Project\
**Created:** [November 24, 2013, 11:57pm UTC](https://forum.ansible.com/t/use-synchronize-module-with-user-different-than-ansible-ssh-user/13992 "2013-11-24T23:57:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jacek\_Bzdak](https://avatars.discourse-cdn.com/v4/letter/j/a698b9/32.png) [@Jacek\_Bzdak](https://forum.ansible.com/u/Jacek_Bzdak)\
**Post date:** [November 24, 2013, 11:57pm UTC](https://forum.ansible.com/t/use-synchronize-module-with-user-different-than-ansible-ssh-user/13992/1 "2013-11-24T23:57:05Z")

</div>

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:

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan2](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Post date:** [November 25, 2013, 6:45pm UTC](https://forum.ansible.com/t/use-synchronize-module-with-user-different-than-ansible-ssh-user/13992/2 "2013-11-25T18:45:02Z")

</div>

What is “ansible --version” ?

---

<div class="post-metadata">

**Author:** ![Jacek\_Bzdak](https://avatars.discourse-cdn.com/v4/letter/j/a698b9/32.png) [@Jacek\_Bzdak](https://forum.ansible.com/u/Jacek_Bzdak)\
**Post date:** [November 27, 2013, 10:20pm UTC](https://forum.ansible.com/t/use-synchronize-module-with-user-different-than-ansible-ssh-user/13992/3 "2013-11-27T22:20:04Z")

</div>

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ł:
