aboutsummaryrefslogblamecommitdiffstats
path: root/roles/repositories/tasks/main.yml
blob: 780caab119eae755754fcd110628fd5992e79e24 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14













                                                                                                             
                                                                                                     
                                                                                                   

                                   

# 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/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.