blob: 0ec924718d54a55287a37587ccfe898265cff5dc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
# 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"
|