From d5dd7e1e80c5c46b3e0a8ed366df1eb236cd61bc Mon Sep 17 00:00:00 2001 From: Arya Kiran Date: Mon, 8 Jan 2024 18:58:20 +0530 Subject: [PATCH] prevent conflict of item var by renaming initial loopvar to service --- privfrontends/playbook.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/privfrontends/playbook.yaml b/privfrontends/playbook.yaml index 729c4bd..8d8b100 100644 --- a/privfrontends/playbook.yaml +++ b/privfrontends/playbook.yaml @@ -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