Skip to content

Commit f38935f

Browse files
committed
Fix git-based database paths
1 parent 595c298 commit f38935f

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

playbooks/deploy.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@
2323
) | bool
2424
}}"
2525

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) }}"
2828

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) }}"
3131

3232
collection_api_basePath: "{{ ota_apps_config['@opentermsarchive/engine']['collection-api'].basePath is defined and ota_apps_config['@opentermsarchive/engine']['collection-api'].basePath }}"
3333
collection_api_port: "{{ ota_apps_config['@opentermsarchive/engine']['collection-api'].port is defined and ota_apps_config['@opentermsarchive/engine']['collection-api'].port }}"
@@ -75,20 +75,20 @@
7575
name: ota/git_database
7676
vars:
7777
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 }}"
7979
ota_git_database_branch: main
8080
when:
81-
- versions_repository and versions_path
81+
- versions_repository and versions_relative_path
8282

8383
- name: Setup Git-based snapshots database
8484
ansible.builtin.include_role:
8585
name: ota/git_database
8686
vars:
8787
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 }}"
8989
ota_git_database_branch: main
9090
when:
91-
- snapshots_repository and snapshots_path
91+
- snapshots_repository and snapshots_relative_path
9292

9393
- name: Setup OTA applications
9494
ansible.builtin.include_role:

0 commit comments

Comments
 (0)