On 10.05.2018 06:57, Aman Kaushik wrote:
*Expected* : I want to run loop on both lines and expects below result. I don’t want to create new task for each line since my variable is common.

The second line is overwriting the first line, you can only have one line per lineintask task.
So you need to split it to one task per line.

If you only want one loop, you can loop include_tasks/import_task with the two lineinfile task in that file.


--
Kai Stian Olstad

--
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/7443728d70a12e755ac416c00bc8917a%40olstad.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to