|
13 | 13 | ota_apps_read_config_only: true
|
14 | 14 |
|
15 | 15 | - name: Set required variables
|
16 |
| - set_fact: |
17 | 16 | tags: [always]
|
| 17 | + ansible.builtin.set_fact: |
18 | 18 | chromium_required: "{{ ota_apps_config['@opentermsarchive/engine'] is defined }}"
|
19 | 19 | # Skip Debian 11 with ARM architecture as it is not currently supported by MongoDB; see https://www.mongodb.com/docs/manual/installation/#supported-platforms
|
20 | 20 | mongo_required:
|
|
29 | 29 |
|
30 | 30 | snapshots_repository: "{{ ota_apps_config['@opentermsarchive/engine'].recorder.snapshots.storage.git.repository | default(None) }}"
|
31 | 31 | snapshots_relative_path: "{{ ota_apps_config['@opentermsarchive/engine'].recorder.snapshots.storage.git.path | default(None) }}"
|
32 |
| - |
| 32 | + |
33 | 33 | versions_repository: "{{ ota_apps_config['@opentermsarchive/engine'].recorder.versions.storage.git.repository | default(None) }}"
|
34 | 34 | versions_relative_path: "{{ ota_apps_config['@opentermsarchive/engine'].recorder.versions.storage.git.path | default(None) }}"
|
35 |
| - |
| 35 | + |
36 | 36 | collection_api_basePath: "{{ ota_apps_config['@opentermsarchive/engine']['collection-api'].basePath | default(None) }}"
|
37 | 37 | collection_api_port: "{{ ota_apps_config['@opentermsarchive/engine']['collection-api'].port | default(None) }}"
|
38 |
| - |
| 38 | + |
39 | 39 | federation_api_basePath: "{{ ota_apps_config['@opentermsarchive/federation-api'].basePath | default(None) }}"
|
40 | 40 | federation_api_port: "{{ ota_apps_config['@opentermsarchive/federation-api'].port | default(None) }}"
|
41 | 41 |
|
|
46 | 46 | - name: Install Node
|
47 | 47 | ansible.builtin.include_role:
|
48 | 48 | name: node
|
49 |
| - |
| 49 | + |
50 | 50 | - name: Install PM2
|
51 | 51 | ansible.builtin.include_role:
|
52 | 52 | name: pm2/install
|
|
56 | 56 | name: chromium
|
57 | 57 | when: chromium_required
|
58 | 58 |
|
59 |
| - - name: Install Nginx |
| 59 | + - name: Install Nginx |
60 | 60 | ansible.builtin.include_role:
|
61 | 61 | name: nginx/install
|
62 |
| - |
| 62 | + |
63 | 63 | - name: Install Mongo
|
64 | 64 | ansible.builtin.include_role:
|
65 | 65 | name: mongo/install
|
|
73 | 73 | become: true
|
74 | 74 | when:
|
75 | 75 | - mongo_required
|
76 |
| - |
| 76 | + |
77 | 77 | - name: Setup Git-based versions database
|
78 | 78 | ansible.builtin.include_role:
|
79 | 79 | name: ota/git_database
|
80 | 80 | vars:
|
81 | 81 | ota_git_database_repository: "{{ versions_repository }}"
|
82 |
| - ota_git_database_directory: "/home/{{ ansible_user }}/{{ ota_directory }}/{{ versions_relative_path }}" |
| 82 | + ota_git_database_directory: /home/{{ ansible_user }}/{{ ota_directory }}/{{ versions_relative_path }} |
83 | 83 | ota_git_database_branch: main
|
84 | 84 | when:
|
85 | 85 | - versions_repository and versions_relative_path
|
|
89 | 89 | name: ota/git_database
|
90 | 90 | vars:
|
91 | 91 | ota_git_database_repository: "{{ snapshots_repository }}"
|
92 |
| - ota_git_database_directory: "/home/{{ ansible_user }}/{{ ota_directory }}/{{ snapshots_relative_path }}" |
| 92 | + ota_git_database_directory: /home/{{ ansible_user }}/{{ ota_directory }}/{{ snapshots_relative_path }} |
93 | 93 | ota_git_database_branch: main
|
94 | 94 | when:
|
95 | 95 | - snapshots_repository and snapshots_relative_path
|
|
0 commit comments