diff --git a/roles/keycloak/tasks/install.yml b/roles/keycloak/tasks/install.yml index 81f905c..37ced27 100644 --- a/roles/keycloak/tasks/install.yml +++ b/roles/keycloak/tasks/install.yml @@ -114,6 +114,7 @@ product_type: DISTRIBUTION product_version: "{{ sso_version.split('.')[:2] | join('.') }}" product_category: "{{ sso_product_category }}" + validate_certs: false register: keycloak_rhn_products no_log: "{{ omit_rhn_output | default(true) }}" delegate_to: localhost @@ -123,8 +124,7 @@ ansible.builtin.set_fact: keycloak_rhn_filtered_products: >- {{ keycloak_rhn_products.results - | selectattr('file_name', 'match', '.*rh-sso-' + sso_version.split('.')[:2] | join('.') + '.*-server-dist\\.zip$') - | rejectattr('file_name', 'search', 'maven|src|license|provenance|adapter') + | selectattr('file_name', 'search', 'rh-sso-' + sso_version + '-server-dist.zip$') | list }} delegate_to: localhost run_once: true @@ -135,6 +135,7 @@ client_secret: "{{ rhn_password }}" product_id: "{{ (keycloak_rhn_filtered_products | first).id }}" dest: "{{ keycloak_local_path.stat.path }}/{{ keycloak_archive }}" + validate_certs: false no_log: "{{ omit_rhn_output | default(true) }}" delegate_to: localhost run_once: true diff --git a/roles/keycloak/tasks/rhsso_patch.yml b/roles/keycloak/tasks/rhsso_patch.yml index ea71ffc..dcf33a3 100644 --- a/roles/keycloak/tasks/rhsso_patch.yml +++ b/roles/keycloak/tasks/rhsso_patch.yml @@ -29,6 +29,7 @@ product_type: BUGFIX product_version: "{{ sso_version.split('.')[:2] | join('.') }}" product_category: "{{ sso_product_category }}" + validate_certs: false register: keycloak_rhn_products no_log: "{{ omit_rhn_output | default(true) }}" delegate_to: localhost @@ -52,7 +53,7 @@ - name: Determine install zipfile from search results ansible.builtin.set_fact: - keycloak_keycloak_rhn_filtered_products: "{{ keycloak_rhn_products.results | selectattr('file_name', 'match', '[^/]*/rh-sso-' + keycloak_sso_latest_version + '-patch.zip$') }}" + keycloak_rhn_filtered_products: "{{ keycloak_rhn_products.results | selectattr('file_name', 'match', '[^/]*/rh-sso-' + keycloak_sso_latest_version + '-patch.zip$') }}" keycloak_patch_bundle: "rh-sso-{{ keycloak_sso_latest_version }}-patch.zip" keycloak_patch_version: "{{ keycloak_sso_latest_version }}" when: (sso_patch_version | default('', true)) | length == 0 @@ -61,7 +62,7 @@ - name: "Determine selected patch from supplied version: {{ sso_patch_version }}" ansible.builtin.set_fact: - keycloak_keycloak_rhn_filtered_products: "{{ keycloak_rhn_products.results | selectattr('file_name', 'match', '[^/]*/' + sso_patch_bundle + '$') }}" + keycloak_rhn_filtered_products: "{{ keycloak_rhn_products.results | selectattr('file_name', 'match', '[^/]*/' + sso_patch_bundle + '$') }}" keycloak_patch_bundle: "{{ sso_patch_bundle }}" keycloak_patch_version: "{{ sso_patch_version }}" when: sso_patch_version is defined @@ -74,6 +75,7 @@ client_secret: "{{ rhn_password }}" product_id: "{{ (keycloak_rhn_filtered_products | sort | last).id }}" dest: "{{ keycloak_local_path.stat.path }}/{{ keycloak_patch_bundle }}" + validate_certs: false no_log: "{{ omit_rhn_output | default(true) }}" delegate_to: localhost run_once: true diff --git a/roles/keycloak_quarkus/tasks/install.yml b/roles/keycloak_quarkus/tasks/install.yml index b6a3258..f141374 100644 --- a/roles/keycloak_quarkus/tasks/install.yml +++ b/roles/keycloak_quarkus/tasks/install.yml @@ -110,6 +110,7 @@ product_type: DISTRIBUTION product_version: "{{ rhbk_version }}" product_category: "{{ rhbk_product_category }}" + validate_certs: false register: keycloak_quarkus_rhn_products no_log: "{{ omit_rhn_output | default(true) }}" delegate_to: localhost @@ -125,9 +126,10 @@ middleware_automation.common.product_download: # noqa risky-file-permissions delegated, uses controller host user client_id: "{{ rhn_username }}" client_secret: "{{ rhn_password }}" - product_id: "{{ (rhn_filtered_products | first).id }}" + product_id: "{{ (keycloak_quarkus_rhn_filtered_products | first).id }}" dest: "{{ keycloak_quarkus_local_path.stat.path }}/{{ keycloak.bundle }}" mode: '0640' + validate_certs: false no_log: "{{ omit_rhn_output | default(true) }}" delegate_to: localhost run_once: true