diff options
Diffstat (limited to 'roles/common/tasks/init_alpine.yml')
-rw-r--r-- | roles/common/tasks/init_alpine.yml | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/roles/common/tasks/init_alpine.yml b/roles/common/tasks/init_alpine.yml new file mode 100644 index 0000000..68689bc --- /dev/null +++ b/roles/common/tasks/init_alpine.yml @@ -0,0 +1,38 @@ + +# common ~~ tasks/init_alpine.yml +# specific tasks for Alpine initalization + +--- + +- name: Setup repositories for Alpine + shell: | + echo "https://mirror.ungleich.ch/mirror/packages/alpine/edge/main/" > /etc/apk/repositories + echo "https://mirror.ungleich.ch/mirror/packages/alpine/edge/community/" >> /etc/apk/repositories + echo "https://mirror.ungleich.ch/mirror/packages/alpine/edge/releases/" >> /etc/apk/repositories + +- name: Download virtio_vmmci + git: + repo: "https://github.com/voutilad/virtio_vmmci" + dest: /data/git/virtio_vmmci + +- name: Install virtio_vmmci + shell: make && make install && modprobe virtio_vmmci + args: + chdir: /data/git/virtio_vmmci + +- name: Enable virtio_vmmci module + shell: echo "virtio_vmmci" > /etc/modules-load.d/virtio_vmmci.conf + +- name: Download vmm_clock module + git: + repo: "https://github.com/voutilad/vmm_clock" + dest: /data/git/vmm_clock + +- name: Install vmm_clock module + shell: make && make install && modprobe vmm_clock + args: + chdir: /data/git/vmm_clock + +- name: Enable vmm_clock module + shell: echo "vmm_clock" > /etc/modules-load.d/vmm_clock.conf + |