Re: [ansible-project] Convert a text file with list of strings into yml help

2019-03-21 Thread Saranya Nagaraj
Thank you Kai. That helped. On Mar 20, 2019 2:04 AM, "Kai Stian Olstad" wrote: > On 19.03.2019 20:09, Saranya N wrote: > > I'm having a text file with lots of strings like below. > > > > Cat test.txt > > String1 > > String2 > > . > > . > > . > > Etc > > > > I literally have 2k of strings on

Re: [ansible-project] Convert a text file with list of strings into yml help

2019-03-19 Thread Kai Stian Olstad
On 19.03.2019 20:09, Saranya N wrote: > I'm having a text file with lots of strings like below. > > Cat test.txt > String1 > String2 > . > . > . > Etc > > I literally have 2k of strings on that file. > > I want to convert to yank like below. > > _ _ _ > > Listofstrings: >- string1 >-

[ansible-project] Convert a text file with list of strings into yml help

2019-03-19 Thread Saranya N
I'm having a text file with lots of strings like below. Cat test.txt String1 String2 . . . Etc I literally have 2k of strings on that file. I want to convert to yank like below. _ _ _ Listofstrings: - string1 - string2 ...etc I can achieve this via shell script but is there an ansible