mirror of
https://github.com/ansible-middleware/keycloak.git
synced 2025-06-28 03:30:21 -07:00
fix: copy from local only if target not existing
This commit is contained in:
parent
9cafd431fb
commit
e0664d53a9
1 changed files with 10 additions and 0 deletions
|
@ -110,6 +110,12 @@
|
||||||
- not keycloak_offline_install
|
- not keycloak_offline_install
|
||||||
- not keycloak_rhn_url in keycloak_rhsso_download_url
|
- not keycloak_rhn_url in keycloak_rhsso_download_url
|
||||||
|
|
||||||
|
- name: Check downloaded archive
|
||||||
|
stat:
|
||||||
|
path: "{{ local_path.stat.path }}/{{ keycloak.bundle }}"
|
||||||
|
register: local_archive_path
|
||||||
|
delegate_to: localhost
|
||||||
|
|
||||||
## copy and unpack
|
## copy and unpack
|
||||||
- name: Copy archive to target nodes
|
- name: Copy archive to target nodes
|
||||||
copy:
|
copy:
|
||||||
|
@ -119,6 +125,10 @@
|
||||||
group: "{{ keycloak_service_group }}"
|
group: "{{ keycloak_service_group }}"
|
||||||
mode: 0750
|
mode: 0750
|
||||||
register: new_version_downloaded
|
register: new_version_downloaded
|
||||||
|
when:
|
||||||
|
- not archive_path.stat.exists
|
||||||
|
- local_archive_path.stat is defined
|
||||||
|
- local_archive_path.stat.exists
|
||||||
become: yes
|
become: yes
|
||||||
|
|
||||||
- name: "Check target directory: {{ keycloak.home }}"
|
- name: "Check target directory: {{ keycloak.home }}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue