On 12/27/19 10:57 AM, Gopal Chatla wrote:
> I am using jinja2 expressions to iterate a 40 lines list. Basically my objective is, how do I iterate first 10 lines In
> first column and there after another 10 lines in second column?
>
> Thanks,
> Gopal
>
Do you mind to share your playbook / tasks and a sample for the list?
Regards
Racke
> On Thu, 26 Dec 2019, 21:22 Stefan Hornburg (Racke), <
ra...@linuxia.de <mailto:
ra...@linuxia.de>> wrote:
>
> On 12/26/19 10:51 AM, Gopal Chatla wrote:
> > I've created a variable from stdout_lines and the contents are copied into a file through blockinfile module along
> with
> > jinja template for loop.
> >
> > The for loop iterates 40 lines. But how do add new line after every 10 lines in jinja template for loop. Like a excel
> > sheet.
> >
> > Thanks, Gopal
>
> Please elaborate on what is your real objective. Without any further information it seems quite futile to me to guess
> your problem.
>
> Regards
> Racke
>
> >
> > On Mon, 23 Dec 2019, 23:38 alicia, <
aco...@redhat.com <mailto:
aco...@redhat.com> <mailto:
aco...@redhat.com
> >> Gopal Chatla <
gopal....@gmail.com <mailto:
gopal....@gmail.com> <mailto:
gopal....@gmail.com
> <mailto:
ansible-project%2Bunsu...@googlegroups.com <mailto:
ansible-project%252Buns...@googlegroups.com>>.
> >
ansible-proje...@googlegroups.com <mailto:
ansible-project%2Bunsu...@googlegroups.com>
> <mailto:
ansible-proje...@googlegroups.com <mailto:
ansible-project%2Bunsu...@googlegroups.com>>.
> > To view this discussion on the web visit
>
https://groups.google.com/d/msgid/ansible-project/a7bb4ee5-a574-8108-49d5-66709f9673f5%40linuxia.de.
>
https://groups.google.com/d/msgid/ansible-project/CAAAxneekJhkFNunsYaAPdCaXdK_5YQmtJA7fAy7kGx-KNPT0gQ%40mail.gmail.com
> <
https://groups.google.com/d/msgid/ansible-project/CAAAxneekJhkFNunsYaAPdCaXdK_5YQmtJA7fAy7kGx-KNPT0gQ%40mail.gmail.com?utm_medium=email&utm_source=footer>.