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] <javascript:>> 
> 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/3cbd7e43-97c5-4aba-8f2c-dae805227743%40googlegroups.com.

Reply via email to