Thank you very much, regex_replace works perfect !! You are very strong Jean-Yves !! :)
regards Le mardi 26 février 2019 12:00:41 UTC+1, Jean-Yves LENHOF a écrit : > > Le 2019-02-26 11:53, [email protected] <javascript:> a écrit : > > Hy all, > > > > I have a file called "file1.csv", the contents of this file is: > > > > word1 word2 word3 word4 > > > > I want him to jump in line with every word, i want this result : > > > > word1 > > word2 > > word3 > > word4 > > > > I use this task for test but she replace every space by \n : > > > > {{ lookup('file' , '/home/my_user/file1.csv') | replace(' ' , '\n') > > }} > > > > Someone have an idea please ??!! > > > > Thank you very much guy !! :) > > > > Use regex_replace instead of replace with the good regex (you need to > use python regex) > > Regards, > > JYL > > -- 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/e74b2af7-2951-4fb5-89d9-726417ed5731%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
