From 8833a27a1d9edc3833deefbe36ae40c676cb3f70 Mon Sep 17 00:00:00 2001 From: Simon Cornet Date: Fri, 24 Oct 2025 22:42:41 +0200 Subject: [PATCH] feat: add alpine support for updates --- tasks/update.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/tasks/update.yaml b/tasks/update.yaml index db531b5..3d87cbe 100644 --- a/tasks/update.yaml +++ b/tasks/update.yaml @@ -7,6 +7,24 @@ - "never" block: + # install updates - alpine + - name: "install updates - alpine" + when: 'ansible_os_family == "Alpine"' + block: + + # install updates + - name: "install updates - alpine" + community.general.apk: + update_cache: true + upgrade: true + + # clean cache + - name: "clean cache - alpine" + ansible.builtin.command: + cmd: "apk clean cache" + changed_when: false + + # install updates - debian - name: "install updates - debian" when: 'ansible_os_family == "Debian"'