Add upgrade tasks for Alpine and Debian systems

This commit is contained in:
Damien
2026-06-01 10:55:15 +02:00
parent 994337fc9a
commit 2639c5e872

View File

@@ -0,0 +1,14 @@
---
# roles/upgrade/tasks/main.yml
- name: Upgrade all packages (Alpine)
community.general.apk:
upgrade: true
update_cache: true
when: ansible_facts['os_family'] == "Alpine"
- name: Upgrade all packages (Debian)
ansible.builtin.apt:
upgrade: full
update_cache: true
when: ansible_facts['os_family'] == "Debian"