Right.. solved it :)
The problem was that the lookup returned a string and not a list.
so i changed the main.yml in vars from

users: "{{ lookup('file', '/etc/remote_users.txt') }}"
to
users: "{{ lookup('file', '/etc/remote_users.txt').split() }}"

and as there is no attribute in the list, i removed that well and just 
itereate of the list:
with_items: '{{users}}'
and not 
with_items: "{{ users.stdout_lines }}"

problem solved.


-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/f87734db-6bb1-4cd4-b8cf-422de2f73875%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to