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/CAL8fbwMt7rti%3D-41M2KyCnudCW5fY2DLW46pM_Kvva0PvrZqeA%40mail.gmail.com.

Reply via email to