|
23 | 23 | ) | bool
|
24 | 24 | }}"
|
25 | 25 |
|
26 |
| - snapshots_repository: "{{ ota_apps_config['@opentermsarchive/engine'].recorder.snapshots.storage.git.repository is defined and ota_apps_config['@opentermsarchive/engine'].recorder.snapshots.storage.git.repository }}" |
27 |
| - snapshots_path: "{{ ota_apps_config['@opentermsarchive/engine'].recorder.snapshots.storage.git.path is defined and ota_apps_config['@opentermsarchive/engine'].recorder.snapshots.storage.git.path }}" |
| 26 | + snapshots_repository: "{{ ota_apps_config['@opentermsarchive/engine'].recorder.snapshots.storage.git.repository | default(None) }}" |
| 27 | + snapshots_relative_path: "{{ ota_apps_config['@opentermsarchive/engine'].recorder.snapshots.storage.git.path | default(None) }}" |
28 | 28 |
|
29 |
| - versions_repository: "{{ ota_apps_config['@opentermsarchive/engine'].recorder.versions.storage.git.repository is defined and ota_apps_config['@opentermsarchive/engine'].recorder.versions.storage.git.repository }}" |
30 |
| - versions_path: "{{ ota_apps_config['@opentermsarchive/engine'].recorder.versions.storage.git.path is defined and ota_apps_config['@opentermsarchive/engine'].recorder.versions.storage.git.path }}" |
| 29 | + versions_repository: "{{ ota_apps_config['@opentermsarchive/engine'].recorder.versions.storage.git.repository | default(None) }}" |
| 30 | + versions_relative_path: "{{ ota_apps_config['@opentermsarchive/engine'].recorder.versions.storage.git.path | default(None) }}" |
31 | 31 |
|
32 | 32 | collection_api_basePath: "{{ ota_apps_config['@opentermsarchive/engine']['collection-api'].basePath is defined and ota_apps_config['@opentermsarchive/engine']['collection-api'].basePath }}"
|
33 | 33 | collection_api_port: "{{ ota_apps_config['@opentermsarchive/engine']['collection-api'].port is defined and ota_apps_config['@opentermsarchive/engine']['collection-api'].port }}"
|
|
75 | 75 | name: ota/git_database
|
76 | 76 | vars:
|
77 | 77 | ota_git_database_repository: "{{ versions_repository }}"
|
78 |
| - ota_git_database_directory: "{{ versions_path }}" |
| 78 | + ota_git_database_directory: "/home/{{ ansible_user }}/{{ ota_directory }}/{{ versions_relative_path }}" |
79 | 79 | ota_git_database_branch: main
|
80 | 80 | when:
|
81 |
| - - versions_repository and versions_path |
| 81 | + - versions_repository and versions_relative_path |
82 | 82 |
|
83 | 83 | - name: Setup Git-based snapshots database
|
84 | 84 | ansible.builtin.include_role:
|
85 | 85 | name: ota/git_database
|
86 | 86 | vars:
|
87 | 87 | ota_git_database_repository: "{{ snapshots_repository }}"
|
88 |
| - ota_git_database_directory: "{{ snapshots_path }}" |
| 88 | + ota_git_database_directory: "/home/{{ ansible_user }}/{{ ota_directory }}/{{ snapshots_relative_path }}" |
89 | 89 | ota_git_database_branch: main
|
90 | 90 | when:
|
91 |
| - - snapshots_repository and snapshots_path |
| 91 | + - snapshots_repository and snapshots_relative_path |
92 | 92 |
|
93 | 93 | - name: Setup OTA applications
|
94 | 94 | ansible.builtin.include_role:
|
|
0 commit comments