Re: [ansible-project] Create file who is in my csv file

2020-01-14 Thread Vladimir Botka
On Tue, 14 Jan 2020 06:57:06 -0800 (PST) Karther wrote: > Maybe 2.8.0.dev0 is not good version ? It's not same that version 2.8.0 ? This looks suspicious. Upgrade to the latest stable version in your distro. Probably 2.9.0 ? See "Release and maintenance"

Re: [ansible-project] Create file who is in my csv file

2020-01-14 Thread Karther
Hello Visser, My version is : *ansible 2.8.0.dev0* * config file = /etc/ansible/ansible.cfg* * configured module search path = [u'/usr/share/ansible']* * ansible python module location = /usr/local/lib/python2.7/dist-packages/ansible* * executable location = /var/ansible/bin/ansible* *

Re: [ansible-project] Create file who is in my csv file

2020-01-14 Thread Karther
And, I have this problem only with module read_csv it's very strange ... all parameters are well indented Can you help me please ... Best regards, Karther Le mardi 14 janvier 2020 15:07:11 UTC+1, Karther a écrit : > > Hey Vladimir, > > The error is : > > *ERROR! no action detected in task.

Re: [ansible-project] Create file who is in my csv file

2020-01-14 Thread Karther
Hey Vladimir, The error is : *ERROR! no action detected in task. This often indicates a misspelled module name, or incorrect module path.* *The error appears to have been in '/home/ansible/mssql_query/roles/tasks/main.yml': line 36, column 3, but may* *be elsewhere in the file depending on

Re: [ansible-project] Create file who is in my csv file

2020-01-14 Thread Vladimir Botka
On Tue, 14 Jan 2020 05:00:35 -0800 (PST) Karther wrote: > My problem is that there is problem of syntax with module read_csv: > > *- name: "Read users from CSV file and return a list"* > * read_csv:* > * path: /home/ansible/mssql_query/roles/files/csv_file.csv* > * delimiter: ','* > *

Re: [ansible-project] Create file who is in my csv file

2020-01-14 Thread Karther
Hey Vladimir !! :) Thanks for your answer, My problem is that there is problem of syntax with module read_csv: My task is : *- name: "Read users from CSV file and return a list"* * read_csv:* * path: /home/ansible/mssql_query/roles/files/csv_file.csv* * delimiter: ','* * register:

Re: [ansible-project] Create file who is in my csv file

2020-01-13 Thread Vladimir Botka
On Mon, 13 Jan 2020 08:10:14 -0800 (PST) Karther wrote: > filename,state,note,temps > file1,0,my fisrt note,52 > file2,0,my second note,34 > file3,0,my thirst note,71 > > ... my goal is that create all file sucessively (file1, file2, > file3, ...) You might be better off with the 'read_csv'

[ansible-project] Create file who is in my csv file

2020-01-13 Thread Karther
Hey all !! :) I have csv file with this content : filename,state,note,temps file1,0,my fisrt note,52 file2,0,my second note,34 file3,0,my thirst note,71 i have this task : - set_fact: csvfile: "{{ lookup('csvfile', 'file=/home/ansible/mssql_query/roles/files/csv_file.csv delimiter=,')