Skip to content

Commit 4e51892

Browse files
committed
[code] final fixes on variable overhaul
1 parent 55ce552 commit 4e51892

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

roles/code/tasks/install.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,6 @@
7171
}}
7272
when: code_blocked_by_cdn is undefined
7373

74-
- name: "Show resolved APK release name"
75-
debug:
76-
var: code_apk_release_name
77-
when: code_blocked_by_cdn is undefined
78-
7974
- name: Extract latest armv7a APK filename from index
8075
set_fact:
8176
code_apk_32bit_filename: >-
@@ -89,7 +84,12 @@
8984

9085
- name: Get CodeOnTheGo version number
9186
set_fact:
92-
cotg_version: "{{ code_apk_release_name | regex_search('CodeOnTheGo-release([0-9.]+)', '\\1') }}"
87+
cotg_version: "{{ code_apk_64bit_filename | regex_search('CodeOnTheGo-release([0-9.]+)', '\\1') }}"
88+
when: code_blocked_by_cdn is undefined
89+
90+
- name: "Show resolved APK release name"
91+
debug:
92+
var: cotg_version
9393
when: code_blocked_by_cdn is undefined
9494

9595
- name: Make index.html file

roles/code/tasks/install_apkfile.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@
77
### Current release - arm64 ###
88
- name: Download arch arm64 APK
99
get_url:
10-
url: "{{ code_download_url }}/{{ item.filename }}"
11-
dest: "{{ code_data_root_apk }}/{{ item.filename }}"
10+
url: "{{ code_download_url }}/{{ code_apk_64bit_filename }}"
11+
dest: "{{ code_data_root_apk }}/{{ code_apk_64bit_filename }}"
1212
mode: "0644"
1313
timeout: "{{ download_timeout }}"
14-
loop: "{{ code_apk_64bit_filename }}"
14+
when: code_apk_64bit_filename
1515

1616
### Future release - arm32 ###
17-
#- name: Download arch arm32 apk (0644)
17+
#- name: Download arch arm64 APK
1818
# get_url:
19-
# url: "{{ code_download_url }}/{{ item.filename }}"
20-
# dest: "{{ code_data_root_apk }}/{{ item.filename }}"
19+
# url: "{{ code_download_url }}/{{ code_apk_64bit_filename }}"
20+
# dest: "{{ code_data_root_apk }}/{{ code_apk_64bit_filename }}"
2121
# mode: "0644"
2222
# timeout: "{{ download_timeout }}"
23-
# loop: "{{ code_apk_32bit_filename }}"
23+
# when: code_apk_64bit_filename

0 commit comments

Comments
 (0)