Full upgrade + Docker ansible playbook

This commit is contained in:
Edgar P. Burkhart 2021-07-19 19:00:08 +02:00
commit f433646cd0
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227

22
upgrade.yml Normal file
View file

@ -0,0 +1,22 @@
---
- name: Upgrade hosts
hosts: all
become: yes
tasks:
- name: Full system upgrade
pacman:
update_cache: yes
upgrade: yes
- name: Upgrade Dockers
hosts: all
tasks:
- name: Docker upgrade Photoview
ansible.builtin.shell:
chdir: ~/Docker/photoview-docker
cmd: docker-compose build --pull && docker-compose up -d
- name: Docker upgrade Vaultwarden
ansible.builtin.shell:
chdir: ~/Docker/vaultwarden
cmd: docker-compose build --pull && docker-compose up -d