blob: 27ec3cbc38a6a010bc68171e249476cc0a46c571 (
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_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"
|