feat: add alpine support for updates
This commit is contained in:
parent
2733600201
commit
8833a27a1d
1 changed files with 18 additions and 0 deletions
|
|
@ -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"'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue