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