diff options
Diffstat (limited to 'roles/repositories/tasks/main.yml')
-rw-r--r-- | roles/repositories/tasks/main.yml | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/roles/repositories/tasks/main.yml b/roles/repositories/tasks/main.yml index 780caab..27ec3cb 100644 --- a/roles/repositories/tasks/main.yml +++ b/roles/repositories/tasks/main.yml @@ -5,14 +5,17 @@ --- - name: ensure mirrors for openbsd systems - shell: echo "https://mirror.ungleich.ch/mirror/openbsd" > /etc/installurl - when: os_distribution == "openbsd" + lineinfile: + path: /etc/installurl + regexp: "^{{ item }}" + line: "{{ item }}" + loop: "{{ repositories_openbsd }}" + when: ansible_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" - + lineinfile: + path: /etc/apk/repositories + regexp: "^{{ item }}" + line: "{{ item }}" + loop: "{{ repositories_alpine }}" + when: ansible_distribution == "Alpine" |