add playbook for containers update

This commit is contained in:
Pierre Guillod 2023-06-13 01:05:25 +02:00
parent 3ef2da540b
commit bd31b282a9
Signed by: pierre
GPG key ID: 78018D943E9CBD0C
2 changed files with 30 additions and 1 deletions

30
containers-update.yml Normal file
View file

@ -0,0 +1,30 @@
- hosts: containers
tasks:
- name: Upgrade Vaultwarden
shell:
cmd: docker compose --file vaultwarden-compose.yml pull && docker compose --file vaultwarden-compose.yml up -d
chdir: /home/pierre
- name: Upgrade Traefik
shell:
cmd: docker compose --file traefik-compose.yml pull && docker compose --file traefik-compose.yml up -d
chdir: /home/pierre
- name: Upgrade Pi-hole
shell:
cmd: docker compose --file pihole-compose.yml pull && docker compose --file pihole-compose.yml up -d
chdir: /home/pierre
- hosts: statelessops
tasks:
- name: Upgrade Woodpecker CI
shell:
cmd: docker compose --file woodpecker-compose.yml pull && docker compose --file woodpecker-compose.yml up -d
chdir: /home/pierre
- name: Upgrade Nocodb
shell:
cmd: docker compose --file nocodb-compose.yml pull && docker compose --file nocodb-compose.yml up -d
chdir: /home/pierre

View file

@ -1,7 +1,6 @@
- hosts: aptservers
tasks:
- name: Upgrade apt packages
become: yes
apt:
upgrade: "dist"
update_cache: yes