prevent conflict of item var by renaming initial loopvar to service

This commit is contained in:
Arya 2024-01-08 18:58:20 +05:30
parent bf973362ca
commit d5dd7e1e80
Signed by: arya
GPG Key ID: 842D12BDA50DF120

View File

@ -30,8 +30,10 @@
ansible.builtin.include_role: ansible.builtin.include_role:
name: gi-yt.docker_compose_declarative name: gi-yt.docker_compose_declarative
vars: vars:
app: "{{ item.value }}" app: "{{ service.value }}"
app_name: "{{ item.key | lower }}" app_name: "{{ service.key | lower }}"
loop: "{{ apps.groups | default({}) | dict2items }}" loop: "{{ apps.groups | default({}) | dict2items }}"
when: item.value.docker_settings loop_control:
loop_var: service
when: service.value.docker_settings
tags: docker tags: docker