# Problem in Ansible 2.0 when using item in remote\_user

**URL:** <https://forum.ansible.com/t/problem-in-ansible-2-0-when-using-item-in-remote-user/19297>\
**Category:** Ansible Project\
**Created:** [September 18, 2015, 10:07am UTC](https://forum.ansible.com/t/problem-in-ansible-2-0-when-using-item-in-remote-user/19297 "2015-09-18T10:07:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bastian](https://avatars.discourse-cdn.com/v4/letter/b/779978/32.png) [@Bastian](https://forum.ansible.com/u/Bastian)\
**Post date:** [September 18, 2015, 10:07am UTC](https://forum.ansible.com/t/problem-in-ansible-2-0-when-using-item-in-remote-user/19297/1 "2015-09-18T10:07:45Z")

</div>

Hey everybody,

since I started using ansible 2.0 I’ve been having issues with this task:

`

- synchronize: src=/src/srcfile dest=/home/{{item}}/  
remote\_user: ‘{{item}}’  
with\_items:
- user1
- user2

`

with\_items works fine for the dest parameter. It iterates through the entire list. But for the remote\_user it uses user1 but doesn’t swithc to user2, user3,… for the next iterations.

In ansible 1.8, which I used previously, I didn’t have an issue with this. Do I need to use a different syntax? Or is this simply not supported anymore in ansible 2.0?
