Commit 8833a27a authored by Simon Cornet's avatar Simon Cornet
Browse files

feat: add alpine support for updates

parent 27336002
Loading
Loading
Loading
Loading
Loading
+18 −0
Original line number Diff line number Diff line
@@ -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"'