Skip to content

Commit

Permalink
[AMW-194] Correct check if prospero is installed on host
Browse files Browse the repository at this point in the history
  • Loading branch information
spyrkob authored and rpelisse committed Feb 14, 2024
1 parent acbe40a commit 48111e7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion roles/wildfly_prospero/tasks/install_prospero.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@
- local_archive_path.stat.exists
become: yes

- name: "Read target directory information: {{ wildfly_prospero_install_dir }}"
ansible.builtin.stat:
path: "{{ wildfly_prospero_install_dir }}/bin"
become: yes
register: path_to_prospero_installation

- name: "Ensure Prospero is installed on target."
ansible.builtin.unarchive:
src: "{{ full_path_to_prospero_archive }}"
Expand All @@ -54,4 +60,4 @@
remote_src: True
become: yes
when:
- new_version_downloaded.changed or not path_to_workdir.stat.exists
- new_version_downloaded.changed or not path_to_prospero_installation.stat.exists

0 comments on commit 48111e7

Please sign in to comment.