aboutsummaryrefslogblamecommitdiffstats
path: root/roles/repositories/tasks/main.yml
blob: 27ec3cbc38a6a010bc68171e249476cc0a46c571 (plain) (tree)
1
2
3
4
5
6
7






                                                   





                                         

                                         





                                        

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

---

- name: ensure mirrors for openbsd systems
  lineinfile:
    path: /etc/installurl
    regexp: "^{{ item }}"
    line: "{{ item }}"
  loop: "{{ repositories_openbsd }}"
  when: ansible_distribution == "OpenBSD"

- name: ensure mirrors for alpine systems
  lineinfile:
    path: /etc/apk/repositories
    regexp: "^{{ item }}"
    line: "{{ item }}"
  loop: "{{ repositories_alpine }}"
  when: ansible_distribution == "Alpine"
remember that computers suck.