aboutsummaryrefslogtreecommitdiffstats
path: root/roles/common/tasks/init_alpine.yml
blob: 68689bc0157b1226a32d2081bfe5209b563a6de2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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

remember that computers suck.