You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: playbooks/deploy.yml
+13-10Lines changed: 13 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -1,16 +1,6 @@
1
1
---
2
2
- name: Deploy Open Terms Archive applications
3
3
hosts: all
4
-
vars:
5
-
chromium_required: ota_apps_config['@opentermsarchive/engine'] is defined
6
-
# Skip Debian 11 with ARM architecture as it is not currently supported by MongoDB; see https://www.mongodb.com/docs/manual/installation/#supported-platforms
7
-
mongo_required: >
8
-
( ansible_distribution != 'Debian' or (ansible_distribution == 'Debian' and ansible_facts['architecture'] != 'aarch64'))
9
-
and (
10
-
(ota_apps_config['@opentermsarchive/engine'].recorder.versions.storage.type is defined and ota_apps_config['@opentermsarchive/engine'].recorder.versions.storage.type == 'mongo') or
11
-
(ota_apps_config['@opentermsarchive/engine'].recorder.snapshots.storage.type is defined and ota_apps_config['@opentermsarchive/engine'].recorder.snapshots.storage.type == 'mongo')
12
-
)
13
-
14
4
tasks:
15
5
- name: Load OTA applications configs
16
6
ansible.builtin.include_role:
@@ -19,6 +9,19 @@
19
9
vars:
20
10
ota_apps_read_config_only: true
21
11
12
+
- name: Set required variables
13
+
set_fact:
14
+
chromium_required: "{{ ota_apps_config['@opentermsarchive/engine'] is defined }}"
15
+
# Skip Debian 11 with ARM architecture as it is not currently supported by MongoDB; see https://www.mongodb.com/docs/manual/installation/#supported-platforms
16
+
mongo_required:
17
+
"{{
18
+
(ansible_distribution != 'Debian' or (ansible_distribution == 'Debian' and ansible_facts['architecture'] != 'aarch64'))
19
+
and (
20
+
(ota_apps_config['@opentermsarchive/engine'].recorder.versions.storage.type is defined and ota_apps_config['@opentermsarchive/engine'].recorder.versions.storage.type == 'mongo')
21
+
or
22
+
(ota_apps_config['@opentermsarchive/engine'].recorder.snapshots.storage.type is defined and ota_apps_config['@opentermsarchive/engine'].recorder.snapshots.storage.type == 'mongo')
0 commit comments