mirror of
https://github.com/ansible-middleware/keycloak.git
synced 2026-06-13 20:15:55 +00:00
Merge pull request #343 from RanabirChakraborty/common_module_fix
Fixing common module usage
This commit is contained in:
@@ -120,7 +120,7 @@
|
|||||||
|
|
||||||
- name: Determine install zipfile from search results
|
- name: Determine install zipfile from search results
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
rhn_filtered_products: "{{ rhn_products.results | selectattr('file_path', 'match', '[^/]*/' + sso_archive + '$') }}"
|
rhn_filtered_products: "{{ rhn_products.results | selectattr('file_name', 'match', '[^/]*/' + sso_archive + '$') }}"
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
run_once: true
|
run_once: true
|
||||||
|
|
||||||
|
|||||||
@@ -36,7 +36,7 @@
|
|||||||
|
|
||||||
- name: Determine patch versions list
|
- name: Determine patch versions list
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
filtered_versions: "{{ rhn_products.results | map(attribute='file_path') | \
|
filtered_versions: "{{ rhn_products.results | map(attribute='file_name') | \
|
||||||
select('match', '^[^/]*/rh-sso-.*[0-9]*[.][0-9]*[.][0-9]*.*$') | \
|
select('match', '^[^/]*/rh-sso-.*[0-9]*[.][0-9]*[.][0-9]*.*$') | \
|
||||||
map('regex_replace', '[^/]*/rh-sso-([0-9]*[.][0-9]*[.][0-9]*(-[0-9])?)-.*', '\\1') | list | unique }}"
|
map('regex_replace', '[^/]*/rh-sso-([0-9]*[.][0-9]*[.][0-9]*(-[0-9])?)-.*', '\\1') | list | unique }}"
|
||||||
when: sso_patch_version is not defined or sso_patch_version | length == 0
|
when: sso_patch_version is not defined or sso_patch_version | length == 0
|
||||||
@@ -52,7 +52,7 @@
|
|||||||
|
|
||||||
- name: Determine install zipfile from search results
|
- name: Determine install zipfile from search results
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
rhn_filtered_products: "{{ rhn_products.results | selectattr('file_path', 'match', '[^/]*/rh-sso-' + sso_latest_version + '-patch.zip$') }}"
|
rhn_filtered_products: "{{ rhn_products.results | selectattr('file_name', 'match', '[^/]*/rh-sso-' + sso_latest_version + '-patch.zip$') }}"
|
||||||
patch_bundle: "rh-sso-{{ sso_latest_version }}-patch.zip"
|
patch_bundle: "rh-sso-{{ sso_latest_version }}-patch.zip"
|
||||||
patch_version: "{{ sso_latest_version }}"
|
patch_version: "{{ sso_latest_version }}"
|
||||||
when: sso_patch_version is not defined or sso_patch_version | length == 0
|
when: sso_patch_version is not defined or sso_patch_version | length == 0
|
||||||
@@ -61,7 +61,7 @@
|
|||||||
|
|
||||||
- name: "Determine selected patch from supplied version: {{ sso_patch_version }}"
|
- name: "Determine selected patch from supplied version: {{ sso_patch_version }}"
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
rhn_filtered_products: "{{ rhn_products.results | selectattr('file_path', 'match', '[^/]*/' + sso_patch_bundle + '$') }}"
|
rhn_filtered_products: "{{ rhn_products.results | selectattr('file_name', 'match', '[^/]*/' + sso_patch_bundle + '$') }}"
|
||||||
patch_bundle: "{{ sso_patch_bundle }}"
|
patch_bundle: "{{ sso_patch_bundle }}"
|
||||||
patch_version: "{{ sso_patch_version }}"
|
patch_version: "{{ sso_patch_version }}"
|
||||||
when: sso_patch_version is defined
|
when: sso_patch_version is defined
|
||||||
|
|||||||
Reference in New Issue
Block a user