Initial commit
This commit is contained in:
16
upgrade-alpine/upgrade-alpine.yaml
Normal file
16
upgrade-alpine/upgrade-alpine.yaml
Normal file
@@ -0,0 +1,16 @@
|
||||
- name: Update to newest Alpine
|
||||
hosts: all
|
||||
tasks:
|
||||
- name: Run APK update
|
||||
apk:
|
||||
update_cache: yes
|
||||
upgrade: true
|
||||
when: ansible_distribution == 'Alpine'
|
||||
|
||||
- name: Update Alpine versions
|
||||
replace:
|
||||
backup: yes
|
||||
path: "/etc/apk/repositories"
|
||||
regexp: 'v\d+\.\d+'
|
||||
replace: 'v3.18'
|
||||
when: ansible_distribution == 'Alpine'
|
||||
Reference in New Issue
Block a user