Hello,

maybe I am just blind but I spend today 2 hours to found out how to read 
from a CSV to create User at the moment I have something like

- hosts: all
  user:
    name="{{ lookup('csvfile', 'item file=user.csv delimiter=, col=0') }}"



and a CSV-File that looks like

jdoe
jkirk
bwillis



I already know that I have to declare the "item" Variable so I can iterate 
through the user.csv but I don't can figured out how, maybe someone here 
can give me a little how to define the item-Variable I would very thanksful
best regards
Dan

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/e7608c21-7066-4fc8-a55f-9bd94fd0a7aa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to