aboutsummaryrefslogblamecommitdiffstats
path: root/roles/repositories/tasks/main.yml
blob: 0ec924718d54a55287a37587ccfe898265cff5dc (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11





                                                   
                                          



                         
                                         
                                         
 
                                         



                               
                                        
                                        

# 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_urls_openbsd }}"
  when: ansible_distribution == "OpenBSD"

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