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
--
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
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 }}"
>
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: