Full upgrade + Docker ansible playbook
This commit is contained in:
commit
f433646cd0
1 changed files with 22 additions and 0 deletions
22
upgrade.yml
Normal file
22
upgrade.yml
Normal 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
|
Reference in a new issue