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"'