From f96c7e3da45798f057d56dc260e0e24aff498e7a Mon Sep 17 00:00:00 2001 From: binary Date: Fri, 5 Mar 2021 19:44:16 +0100 Subject: Cleanup `repositories` role --- roles/repositories/files/installurl | 2 -- roles/repositories/tasks/main.yml | 8 ++++---- roles/repositories/vars/main.yml | 5 ++--- 3 files changed, 6 insertions(+), 9 deletions(-) delete mode 100644 roles/repositories/files/installurl diff --git a/roles/repositories/files/installurl b/roles/repositories/files/installurl deleted file mode 100644 index 71117ea..0000000 --- a/roles/repositories/files/installurl +++ /dev/null @@ -1,2 +0,0 @@ -https://mirror.ungleich.ch/pub/OpenBSD - diff --git a/roles/repositories/tasks/main.yml b/roles/repositories/tasks/main.yml index 27ec3cb..0ec9247 100644 --- a/roles/repositories/tasks/main.yml +++ b/roles/repositories/tasks/main.yml @@ -4,18 +4,18 @@ --- -- name: ensure mirrors for openbsd systems +- name: ensure mirrors for OpenBSD systems lineinfile: path: /etc/installurl regexp: "^{{ item }}" line: "{{ item }}" - loop: "{{ repositories_openbsd }}" + loop: "{{ repositories_urls_openbsd }}" when: ansible_distribution == "OpenBSD" -- name: ensure mirrors for alpine systems +- name: ensure mirrors for Alpine systems lineinfile: path: /etc/apk/repositories regexp: "^{{ item }}" line: "{{ item }}" - loop: "{{ repositories_alpine }}" + loop: "{{ repositories_urls_alpine }}" when: ansible_distribution == "Alpine" diff --git a/roles/repositories/vars/main.yml b/roles/repositories/vars/main.yml index c9817a3..dd195d9 100644 --- a/roles/repositories/vars/main.yml +++ b/roles/repositories/vars/main.yml @@ -4,12 +4,11 @@ --- -repositories_openbsd: +repositories_urls_openbsd: - https://mirror.ungleich.ch/mirror/openbsd -repositories_alpine: +repositories__urls_alpine: - https://mirror.ungleich.ch/mirror/packages/alpine/latest-stable/main - https://mirror.ungleich.ch/mirror/packages/alpine/latest-stable/community - https://mirror.ungleich.ch/mirror/packages/alpine/edge/community/ - https://mirror.ungleich.ch/mirror/packages/alpine/edge/testing/ - -- cgit v1.2.3