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