Problem in Ansible 2.0 when using item in remote_user

55 views
Skip to first unread message

Bastian

unread,
Sep 18, 2015, 7:36:10 AM9/18/15
to Ansible Project
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?
Reply all
Reply to author
Forward
0 new messages