If I have this config, no problem I can see the output however I have a long list inside the variable and i don’t want to manually add new lines and modify the index from “0” to “100” it will be long! How can I loop it?
Thank you Al. I checked the documentation and I’m sorry I can’t make it work with lineinfile to loop it. I have some plays using with_items but this one for index I just can’t…
So I am using vars_files and the file look like this.
And the task that I am struggling is this. Index 0 I can see it or to any 1,2,3 but I want to loop it. Is this really possible using lineinfile module?
Do you have an idea how it can be move to the next line? seems \n doesn’t work. I want those three domains or more to be in the same columnn FWD_lookup. Thanks
Thank you Al! I put the loop statement in the wrong place that’s why I keep getting error and thought about lineinfile can’t support it. Thank you so much!