add playbook for containers update
This commit is contained in:
parent
3ef2da540b
commit
bd31b282a9
2 changed files with 30 additions and 1 deletions
30
containers-update.yml
Normal file
30
containers-update.yml
Normal 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
|
|
@ -1,7 +1,6 @@
|
|||
- hosts: aptservers
|
||||
tasks:
|
||||
- name: Upgrade apt packages
|
||||
become: yes
|
||||
apt:
|
||||
upgrade: "dist"
|
||||
update_cache: yes
|
Loading…
Reference in a new issue