Skip to content

Commit 0b3a2d4

Browse files
committed
PMM-12940 Set need_initialization correctly.
1 parent 45a6fdd commit 0b3a2d4

File tree

1 file changed

+4
-3
lines changed
  • build/ansible/roles/initialization/tasks

1 file changed

+4
-3
lines changed

build/ansible/roles/initialization/tasks/main.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
src: /usr/share/percona-dashboards/VERSION
1212
register: image_version_file
1313

14+
- name: Initialization needed
15+
set_fact:
16+
need_initialization: "{{ current_version_file['failed'] == true }}"
17+
1418
- name: Set current version if VERSION doesn't exist
1519
set_fact:
1620
pmm_current_version: "0.0"
@@ -36,9 +40,6 @@
3640
- name: Print need_upgrade fact
3741
debug:
3842
msg: "Need upgrade: {{ need_upgrade }}"
39-
- name: Initialization needed
40-
set_fact:
41-
need_initialization: "{{ pmm_current_version == '0.0' }}"
4243

4344
- name: Perform upgrade & init tasks
4445
block:

0 commit comments

Comments
 (0)