aboutsummaryrefslogtreecommitdiffstats
path: root/roles/repositories/tasks/main.yml
blob: 5fcb6db3936bb36a791c6224fcea3193a76df5a1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

# repositories ~~ roles/repositories/tasks/main.yml
# ensure correct repositories are used

---

- name: ensure mirrors for openbsd systems
  shell: echo "https://mirror.ungleich.ch/mirror/openbsd" > /etc/installurl
  when: os_distribution == "openbsd"

- name: ensure mirrors for alpine systems
  shell: |
    echo "https://mirror.ungleich.ch/mirror/packages/alpine/latest-stable/main" > /etc/apk/repositories
    echo "https://mirror.ungleich.ch/mirror/packages/alpine/latest-stable/community" >> /etc/apk/repositories
    echo "https://mirror.ungleich.ch/mirror/packages/alpine/edge/testing/" >> /etc/apk/repositories
  when: os_distribution == "alpine"

remember that computers suck.