mirror of
https://github.com/ansible-middleware/keycloak.git
synced 2025-08-19 12:31:52 -07:00
Code review comments
This commit is contained in:
parent
7b376e0681
commit
ce26ceeed0
7 changed files with 65 additions and 44 deletions
|
@ -74,11 +74,11 @@
|
|||
- archive_path is defined
|
||||
- archive_path.stat is defined
|
||||
- not archive_path.stat.exists
|
||||
- not keycloak_zip_file_local_path is defined
|
||||
- not keycloak_rhsso_enable and not zip_file_local_path is defined
|
||||
|
||||
- name: "Copy zipfile from local source: {{ keycloak_zip_file_local_path }}"
|
||||
- name: "Copy zipfile from local source: {{ zip_file_local_path }}"
|
||||
ansible.builtin.copy:
|
||||
src: "{{ keycloak_zip_file_local_path }}"
|
||||
src: "{{ zip_file_local_path }}"
|
||||
dest: "{{ keycloak_dest }}"
|
||||
owner: "{{ keycloak_service_user }}"
|
||||
group: "{{ keycloak_service_group }}"
|
||||
|
@ -87,7 +87,7 @@
|
|||
- archive_path is defined
|
||||
- archive_path.stat is defined
|
||||
- not archive_path.stat.exists
|
||||
- keycloak_zip_file_local_path is defined
|
||||
- not keycloak_rhsso_enable and zip_file_local_path is defined
|
||||
|
||||
- name: extract Keycloak archive on target
|
||||
unarchive:
|
||||
|
@ -105,9 +105,9 @@
|
|||
- block:
|
||||
- assert:
|
||||
that:
|
||||
- rhsso_rhn_id is defined or rhsso_zip_file_local_path is defined or rhsso_source_download_url is defined
|
||||
- rhsso_rhn_id is defined or zip_file_local_path is defined
|
||||
quiet: true
|
||||
fail_msg: "Can't install RHSSO without either RHN ID or RHSSO zip file local path"
|
||||
fail_msg: "Can't install RHSSO without either RHN ID or RHSSO zip file located on Ansible node"
|
||||
|
||||
- name: create download directory
|
||||
file:
|
||||
|
@ -117,9 +117,8 @@
|
|||
group: "{{ keycloak_service_group }}"
|
||||
mode: 0750
|
||||
|
||||
- include_tasks: download_from_rhn.yml
|
||||
- include_tasks: get_rhsso.yml
|
||||
vars:
|
||||
rhn_id_file: "{{ rhsso_rhn_id | default(None) }}"
|
||||
zipfile_dest: "{{ keycloak_dest }}/{{ keycloak_rhsso_archive }}"
|
||||
work_dir: "{{ keycloak_dest }}"
|
||||
target_dir: "{{ keycloak_jboss_home }}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue