mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2025-01-23 20:39:26 +00:00
16 lines
731 B
YAML
16 lines
731 B
YAML
---
|
|
|
|
- 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
|
|
|