From 5e500db618329be861acdc98092086b8664f90a0 Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Mon, 3 Jul 2023 23:57:21 +0200 Subject: [PATCH] Fix install intellij on clean system --- roles/intellij/tasks/main.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/roles/intellij/tasks/main.yml b/roles/intellij/tasks/main.yml index 9d83462..4291849 100644 --- a/roles/intellij/tasks/main.yml +++ b/roles/intellij/tasks/main.yml @@ -19,6 +19,15 @@ set_fact: local_intellij_version: "{{ local_version_info_file.stdout | from_json | json_query('version') }}" upstream_intellij_version: "{{ idea_info.json | json_query('IIU[0].version') }}" + when: + local_version_inf_file is defined + +- name: "Set version info fact" + set_fact: + local_intellij_version: "0.0" + upstream_intellij_version: "{{ idea_info.json | json_query('IIU[0].version') }}" + when: + local_version_inf_file is undefined - import_tasks: install.yml when: local_version_info_file is undefined or local_intellij_version != upstream_intellij_version