prevent conflict of item var by renaming initial loopvar to service
This commit is contained in:
parent
bf973362ca
commit
d5dd7e1e80
@ -30,8 +30,10 @@
|
||||
ansible.builtin.include_role:
|
||||
name: gi-yt.docker_compose_declarative
|
||||
vars:
|
||||
app: "{{ item.value }}"
|
||||
app_name: "{{ item.key | lower }}"
|
||||
app: "{{ service.value }}"
|
||||
app_name: "{{ service.key | lower }}"
|
||||
loop: "{{ apps.groups | default({}) | dict2items }}"
|
||||
when: item.value.docker_settings
|
||||
loop_control:
|
||||
loop_var: service
|
||||
when: service.value.docker_settings
|
||||
tags: docker
|
||||
|
Loading…
Reference in New Issue
Block a user