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?