parent
6defb43dfa
commit
b71c8b9f92
2 changed files with 4 additions and 2 deletions
|
@ -3,6 +3,8 @@
|
||||||
remote_user: "root"
|
remote_user: "root"
|
||||||
strategy: "free"
|
strategy: "free"
|
||||||
vars:
|
vars:
|
||||||
|
alpine_version: 3.16
|
||||||
|
apk_version: 2.12.9-r3
|
||||||
packages:
|
packages:
|
||||||
- alpine-base
|
- alpine-base
|
||||||
- linux-virt
|
- linux-virt
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
---
|
---
|
||||||
- name: "Download and install APK static into the host system."
|
- 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:
|
args:
|
||||||
creates: "/sbin/apk.static"
|
creates: "/sbin/apk.static"
|
||||||
- name: "Perform installation in a mostly secure way. First install keys insecurely."
|
- 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:
|
args:
|
||||||
creates: "/mnt/etc/apk/keys"
|
creates: "/mnt/etc/apk/keys"
|
||||||
- name: "Enable repositories."
|
- name: "Enable repositories."
|
||||||
|
|
Loading…
Reference in a new issue