Skip to content

Commit 537e52d

Browse files
committed
fix: use requested dashmate version for config format
1 parent 1cb683a commit 537e52d

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

ansible/roles/dashmate/tasks/main.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,9 +255,14 @@
255255
- dashmate_version is defined
256256
- (dashmate_needs_update | default(true)) or force_dashmate_reinstall | default(false)
257257

258-
- name: Set dashmate config version from already extracted version
258+
- name: Set dashmate config version
259259
ansible.builtin.set_fact:
260-
dashmate_config_version: "{{ installed_dashmate_version }}"
260+
dashmate_config_version: >-
261+
{{
262+
dashmate_version
263+
if dashmate_version is defined
264+
else installed_dashmate_version
265+
}}
261266
262267
# This check will return an error code if config is missing, config schema is invalid or default config is not yet set
263268
- name: Check state of dashmate config

0 commit comments

Comments
 (0)