Re: [ansible-project] multiple loops in single TASK

2022-05-24 Thread Brian Coca
You cannot have multiple loops per task (aside from already existing host loop) BUT you can basically get the same thing by making the data result into the same thing you would have in that case or you can loop over an include that has the task with it's own loop. -- -- Brian Coca --

Re: [ansible-project] multiple loops in single TASK

2022-05-24 Thread dulhaver via Ansible Project
On 24.05.22 03:08, Dick Visser wrote: This is not possible. ok, thx Also, why would you want to 'nest' the packages? good point, maybe that's just me trying to abstract things over the top On Mon, 23 May 2022 at 18:43, dulhaver via Ansible Project wrote: I want to to install

Re: [ansible-project] multiple loops in single TASK

2022-05-23 Thread Dick Visser
This is not possible. Also, why would you want to 'nest' the packages? On Mon, 23 May 2022 at 18:43, dulhaver via Ansible Project < ansible-project@googlegroups.com> wrote: > I want to to install some packages to several almalinux hosts > > - name: "docker=install" > delegate_to: "{{ item }}" >

[ansible-project] multiple loops in single TASK

2022-05-23 Thread dulhaver via Ansible Project
I want to to install some packages to several almalinux hosts -name:"docker=install" delegate_to:"{{ item }}" dnf: name: -'https://download.docker.com/linux/rhel/8/source/stable/Packages/docker-ce-20.10.15-3.el8.src.rpm' -yum-utils -device-mapper-persistent-data -lvm2 state:present loop: