diff options
author | binary <me@rgoncalves.se> | 2021-03-05 19:44:16 +0100 |
---|---|---|
committer | binary <me@rgoncalves.se> | 2021-03-05 19:44:23 +0100 |
commit | f96c7e3da45798f057d56dc260e0e24aff498e7a (patch) | |
tree | 8ff303889e2d641bd0abd3acef7c80f1e37bedba /roles | |
parent | fde556928d8ba7970566d1e445706083a599c9a3 (diff) | |
download | infrastructure-f96c7e3da45798f057d56dc260e0e24aff498e7a.tar.gz |
Cleanup `repositories` role
Diffstat (limited to 'roles')
-rw-r--r-- | roles/repositories/files/installurl | 2 | ||||
-rw-r--r-- | roles/repositories/tasks/main.yml | 8 | ||||
-rw-r--r-- | roles/repositories/vars/main.yml | 5 |
3 files changed, 6 insertions, 9 deletions
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/ - |