From 9e8a3ce1501f18b32246adda4a65165a92f843d3 Mon Sep 17 00:00:00 2001 From: jaydee Date: Fri, 15 Nov 2024 13:43:32 +0100 Subject: [PATCH] bitwarden --- playbooks/stop_containers.yaml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/playbooks/stop_containers.yaml b/playbooks/stop_containers.yaml index 831b719..f2956ba 100644 --- a/playbooks/stop_containers.yaml +++ b/playbooks/stop_containers.yaml @@ -1,5 +1,16 @@ --- + +- name: Add elements to a list + set_fact: + docker_containers: "{{ docker_containers | default([]) + [item] }}" + loop: + - element1 + - element2 + - element3 +- debug: + msg: "{{ docker_containers }}" - name: Stop mailu containers command: "docker stop kestra-kestra-1 kestra-postgres-1 authentik-postgresql-1 authentik-worker-1 authentik-server-1 authentik-redis-1 gitlab semaphore-db-1 semaphore-app-1 nginx-app-1 heimdall mailu2-admin-1 mailu2-antispam-1 mailu2-antivirus-1 mailu2-fetchmail-1 mailu2-front-1 mailu2-imap-1 mailu2-oletools-1 mailu2-redis-1 mailu2-resolver-1 mailu2-smtp-1 mailu2-webdav-1 mailu2-webmail-1 HomeAssistant mosquitto-mosquitto-1 webhub-web-1" become: true - ignore_errors: true \ No newline at end of file + ignore_errors: true + \ No newline at end of file