Hey,

Help me please !!! :)

If i change this task with lookup, i will be to change my whole program !!! 
;(

Regards,

Le mardi 20 août 2019 15:49:47 UTC+2, Karther a écrit :
>
> Hey,
>
> This module not work !! :/
>
> I have error synthax i don't understand why !! :/
>
> Can you help me for my first message please with this task :
>
> - set_fact:
>       indice: "{{ indice|default([])|union(item.split(',')[0]|list) }}"
>   with_lines: cat /home/ansible/ssh_manager/clef_applicatives.csv
>   when: item.split(',')[2] == inventory_hostname
>   delegate_to: localhost
>
> Thanks you very much Community Ansible !!! :)
>
> Regards,
>
> Le mardi 20 août 2019 15:29:55 UTC+2, Dick Visser a écrit :
>>
>> Hi 
>>
>>
>>
>> On Tue, 20 Aug 2019 at 14:39, Karther <[email protected]> wrote: 
>> > - set_fact: 
>> >       indice: "{{ indice|default([])|union(item.split(',')[0]|list) }}" 
>> >   with_lines: cat /home/ansible/ssh_manager/clef_applicatives.csv 
>> >   when: item.split(',')[2] == inventory_hostname 
>>
>> Stop doing that. 
>> There is a dedicated module to handle csv files: 
>>
>> https://docs.ansible.com/ansible/latest/modules/read_csv_module.html 
>>
>>
>>
>> -- 
>> Dick Visser 
>> Trust & Identity Service Operations Manager 
>> GÉANT 
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/1a08474b-b5d9-4780-86f9-474dc444df69%40googlegroups.com.

Reply via email to