ansible-playbooks/playbooks/containers-update.yml

71 lines
2.5 KiB
YAML
Raw Normal View History

2024-01-20 12:48:55 +01:00
- hosts: stateful
2023-06-13 01:05:25 +02:00
tasks:
2024-01-20 12:48:55 +01:00
- name: Upgrade TeamMapper
shell:
cmd: docker compose --file teammapper-compose.yml pull && docker compose --file teammapper-compose.yml up --force-recreate --build -d
chdir: /home/pierre
2023-06-13 01:05:25 +02:00
- name: Upgrade Vaultwarden
shell:
2024-01-20 12:48:55 +01:00
cmd: docker compose --file vaultwarden-compose.yml pull && docker compose --file vaultwarden-compose.yml up --force-recreate --build -d
2023-06-13 01:05:25 +02:00
chdir: /home/pierre
- name: Upgrade Traefik
shell:
2024-01-20 12:48:55 +01:00
cmd: docker compose --file traefik-compose.yml pull && docker compose --file traefik-compose.yml up --force-recreate --build -d
2023-06-13 01:05:25 +02:00
chdir: /home/pierre
- name: Upgrade Pi-hole
shell:
2024-01-20 12:48:55 +01:00
cmd: docker compose --file pihole-compose.yml pull && docker compose --file pihole-compose.yml up --force-recreate --build -d
2023-06-13 01:05:25 +02:00
chdir: /home/pierre
2023-08-03 09:56:55 +02:00
- name: Upgrade Forgejo
shell:
2024-01-20 12:48:55 +01:00
cmd: docker compose --file forgejo-compose.yml pull && docker compose --file forgejo-compose.yml up --force-recreate --build -d
2023-08-03 09:56:55 +02:00
chdir: /home/pierre
- name: Upgrade Conduit
shell:
2024-01-20 12:48:55 +01:00
cmd: docker compose --file conduit-compose.yml pull && docker compose --file conduit-compose.yml up --force-recreate --build -d
2023-08-03 09:56:55 +02:00
chdir: /home/pierre
2024-01-20 12:48:55 +01:00
- name: Upgrade Nocodb
shell:
cmd: docker compose --file nocodb-compose.yml pull && docker compose --file nocodb-compose.yml up --force-recreate --build -d
chdir: /home/pierre
2023-06-13 01:05:25 +02:00
2024-01-20 12:48:55 +01:00
- name: Prune docker images
2023-06-13 01:05:25 +02:00
shell:
2024-01-20 12:48:55 +01:00
cmd: docker image prune -f
2023-06-13 01:05:25 +02:00
chdir: /home/pierre
2024-01-20 12:48:55 +01:00
- hosts: stateless
tasks:
- name: Upgrade Woodpecker CI
2023-06-13 01:05:25 +02:00
shell:
2024-01-20 12:48:55 +01:00
cmd: docker compose --file woodpecker-compose.yml pull && docker compose --file woodpecker-compose.yml up --force-recreate --build -d
2023-06-13 01:05:25 +02:00
chdir: /home/pierre
2023-08-03 09:56:55 +02:00
- name: Upgrade Leantime
shell:
2024-01-20 12:48:55 +01:00
cmd: docker compose --file leantime-compose.yml pull && docker compose --file leantime-compose.yml up --force-recreate --build -d
2023-08-03 09:56:55 +02:00
chdir: /home/pierre
- name: Upgrade DLNextcloud
shell:
2024-01-20 12:48:55 +01:00
cmd: docker compose --file dlnextcloud-compose.yml down && docker compose --file dlnextcloud-compose.yml build && docker compose --file dlnextcloud-compose.yml up --force-recreate --build -d
chdir: /home/pierre
- name: Upgrade n8n
shell:
cmd: docker compose --file n8n-compose.yml pull && docker compose --file n8n-compose.yml up --force-recreate --build -d
chdir: /home/pierre
- name: Prune docker images
shell:
cmd: docker image prune -f
2023-08-03 09:56:55 +02:00
chdir: /home/pierre