Hello,

my csv file has the "," delimiter and is this way:
buddy,dv19,toto
eric,dv05,toto
buddy,dv05,toto

I can easily use the lookup command on a single key like buddy or eric or 
dv19 or dv05.
How could I proceed to select on a multiple key like "buddy,dv19" ? 

I tried to set a variable to buddy,dv1รง and use it this way, it cannot be 
found:

....
doublekey: buddy,dv19
....
 - debug: msg="the value of doublekey  is {{ lookup('csvfile', '{} 
file=/home/fanvalt/parameter_playbook/param.csv delimiter=, 
col=0'.format(doublekey)) }}"

any clue ?

Regards

-- 
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/94daef3b-15ce-4818-8d81-1dd266a20dcf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to