parent
6defb43dfa
commit
b71c8b9f92
2 changed files with 4 additions and 2 deletions
|
@ -3,6 +3,8 @@
|
|||
remote_user: "root"
|
||||
strategy: "free"
|
||||
vars:
|
||||
alpine_version: 3.16
|
||||
apk_version: 2.12.9-r3
|
||||
packages:
|
||||
- alpine-base
|
||||
- linux-virt
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
---
|
||||
- name: "Download and install APK static into the host system."
|
||||
shell: "cd / && curl http://dl-cdn.alpinelinux.org/alpine/v3.15/main/x86_64/apk-tools-static-2.12.7-r3.apk | tar -xvzf - sbin/apk.static"
|
||||
shell: "cd / && curl http://dl-cdn.alpinelinux.org/alpine/v{{ alpine_version }}/main/x86_64/apk-tools-static-{{ apk_version }}.apk | tar -xvzf - sbin/apk.static"
|
||||
args:
|
||||
creates: "/sbin/apk.static"
|
||||
- name: "Perform installation in a mostly secure way. First install keys insecurely."
|
||||
shell: "apk.static -X http://dl-cdn.alpinelinux.org/alpine/v3.15/main --root /mnt --arch x86_64 --initdb --allow-untrusted add alpine-keys"
|
||||
shell: "apk.static -X http://dl-cdn.alpinelinux.org/alpine/v{{ alpine_version }}/main --root /mnt --arch x86_64 --initdb --allow-untrusted add alpine-keys"
|
||||
args:
|
||||
creates: "/mnt/etc/apk/keys"
|
||||
- name: "Enable repositories."
|
||||
|
|
Loading…
Reference in a new issue