Rework update playbook

This commit is contained in:
Keannu Bernasol 2025-01-13 00:55:24 +08:00
parent e304e5af8b
commit 9cdf61ff0b

View file

@ -10,7 +10,6 @@
update_cache: true update_cache: true
autoremove: true autoremove: true
state: latest state: latest
notify: Restart Docker Containers
- name: Update all packages - name: Update all packages
apt: apt:
name: "*" name: "*"
@ -19,8 +18,5 @@
state: latest state: latest
- name: Update ACME - name: Update ACME
command: /root/.acme.sh/acme.sh --upgrade --auto-upgrade command: /root/.acme.sh/acme.sh --upgrade --auto-upgrade
- name: Restart All Services
handlers:
# Restart Docker Containers on Docker Update
- name: Restart Docker Containers
command: bash "/root/scripts/start_services.sh" command: bash "/root/scripts/start_services.sh"