Skip to content

Commit 56b1876

Browse files
committed
[kolibri] fix variable naming format
1 parent b7df82c commit 56b1876

3 files changed

Lines changed: 12 additions & 12 deletions

File tree

roles/kolibri/defaults/main.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,16 +69,16 @@ kolibri_nginx_template: "{{ 'kolibri-nginx-proot.conf.j2' if is_proot else 'koli
6969
kolibri_patch_path: "/opt/iiab/iiab/roles/proot_services/files/kolibri-00-prevent_ip_error_out_due_A15_restrictions.patch"
7070

7171
# Custom repo data by OS
72-
os_repo:
73-
true: # when is_debian
72+
kolibri_repo_dict:
73+
True: # when is_debian
7474
repo: "https://learningequality.github.io/kolibri-installer-debian/"
7575
keyring: "/etc/apt/keyrings/learningequality-kolibri.asc"
7676
suite: "stable"
77-
false: # when not is_debian
77+
False: # when not is_debian
7878
repo: "http://ppa.launchpad.net/learningequality/kolibri/ubuntu/"
7979
keyring: "/etc/apt/keyrings/learningequality-kolibri.gpg"
8080
suite: "noble"
8181

82-
repo_uris: "{{ os_repo[is_debian | string].repo }}"
83-
keyring_file: "{{ os_repo[is_debian | string].keyring }}"
84-
kolibri_suite: "{{ os_repo[is_debian | string].suite }}"
82+
kolibri_repo_uris: "{{ kolibri_repo_dict[is_debian | string].repo }}"
83+
kolibri_keyring_file: "{{ kolibri_repo_dict[is_debian | string].keyring }}"
84+
kolibri_suite: "{{ kolibri_repo_dict[is_debian | string].suite }}"

roles/kolibri/tasks/install.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,21 +71,21 @@
7171
# https://github.com/learningequality/kolibri-installer-debian/pull/117
7272

7373
# 2022-08-31: keyring /etc/apt/trusted.gpg DEPRECATED as detailed on #3343
74-
- name: "Download Kolibri's apt key to {{ keyring_file }}"
74+
- name: "Download Kolibri's apt key to {{ kolibri_keyring_file }}"
7575
shell: |
7676
gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys DC5BAA93F9E4AE4F0411F97C74F88ADB3194DD81
77-
gpg --yes --output "{{ keyring_file }}" --export DC5BAA93F9E4AE4F0411F97C74F88ADB3194DD81
77+
gpg --yes --output "{{ kolibri_keyring_file }}" --export DC5BAA93F9E4AE4F0411F97C74F88ADB3194DD81
7878
when: not is_debian
7979

8080
- name: Remove stale apt .list
8181
file:
8282
path: /etc/apt/sources.list.d/ppa_launchpad_net_learningequality_kolibri_ubuntu.list
8383
state: absent
8484

85-
- name: "Download Kolibri's apt key to {{ keyring_file }}"
85+
- name: "Download Kolibri's apt key to {{ kolibri_keyring_file }}"
8686
shell: |
8787
curl -fsSL https://learningequality.github.io/kolibri-installer-debian/pubkey.asc | \
88-
tee "{{ keyring_file }}" > /dev/null
88+
tee "{{ kolibri_keyring_file }}" > /dev/null
8989
when: is_debian
9090

9191
# 2024-06-25: Strongly consider PPA "kolibri-proposed" in future...
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Types: deb
2-
URIs: {{ repo_uris }}
2+
URIs: {{ kolibri_repo_uris }}
33
Suites: {{ kolibri_suite }}
44
Components: main
5-
Signed-By: {{ keyring_file }}
5+
Signed-By: {{ kolibri_keyring_file }}

0 commit comments

Comments
 (0)