From 296f37b31cadaedde0b6207fda2a58f089a85459 Mon Sep 17 00:00:00 2001 From: "ladislav.dusa" Date: Fri, 15 Nov 2024 17:19:57 +0100 Subject: [PATCH] test --- playbooks/stop_containers.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/playbooks/stop_containers.yaml b/playbooks/stop_containers.yaml index 1c04dee..dc84888 100644 --- a/playbooks/stop_containers.yaml +++ b/playbooks/stop_containers.yaml @@ -89,6 +89,13 @@ - webhub-web-1 when: '"webhub" in selected_containers' +- name: Add elements to a list + set_fact: + docker_containers: "{{ docker_containers | default([]) + [item] }}" + loop: + - pihole + when: '"pihole" in selected_containers' + - debug: msg: "{{ docker_containers }}" - name: Stop mailu containers