diff --git a/playbooks/stop_containers.yaml b/playbooks/stop_containers.yaml index a6f6a7b..b3c480d 100644 --- a/playbooks/stop_containers.yaml +++ b/playbooks/stop_containers.yaml @@ -60,26 +60,27 @@ - mailu3-webmail-1 - mailu3-fts_attachments-1 when: '"mailu3" in selected_containers' + - name: Add elements to a list set_fact: docker_containers: "{{ docker_containers | default([]) + [item] }}" loop: - HomeAssistant when: '"homeassistant" in selected_containers' + - name: Add elements to a list set_fact: docker_containers: "{{ docker_containers | default([]) + [item] }}" loop: - webhub-web-1" when: '"webhub" in selected_containers' + - name: Add elements to a list set_fact: docker_containers: "{{ docker_containers | default([]) + [item] }}" loop: - - mosquitto-mosquitto-1" + - mosquitto-mosquitto-1 when: '"mosquitto" in selected_containers' -- name: Add elements to a list - - debug: msg: "{{ docker_containers }}"