Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add check for prospero installed on host #175

Merged
merged 1 commit into from
Feb 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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