mirror of
https://github.com/ansible-middleware/keycloak.git
synced 2026-11-22 15:10:38 +00:00
Use removesuffix to strip overlapping path from hostname before re-appending http_relative_path, preventing /auth/auth/ duplication. Add molecule test for the relative path scenario.
30 lines
931 B
YAML
30 lines
931 B
YAML
---
|
|
- name: Prepare
|
|
hosts: all
|
|
vars_files:
|
|
- ../group_vars/all/vars.yml
|
|
gather_facts: yes
|
|
vars:
|
|
sudo_pkg_name: sudo
|
|
tasks:
|
|
- name: "Run preparation common to all scenario"
|
|
ansible.builtin.include_tasks: ../prepare.yml
|
|
|
|
- name: Create controller directory for downloads
|
|
ansible.builtin.file: # noqa risky-file-permissions delegated, uses controller host user
|
|
path: /tmp/keycloak
|
|
state: directory
|
|
mode: '0750'
|
|
delegate_to: localhost
|
|
run_once: true
|
|
|
|
- name: Download keycloak archive to controller directory
|
|
ansible.builtin.get_url: # noqa risky-file-permissions delegated, uses controller host user
|
|
url: https://github.com/keycloak/keycloak/releases/download/26.6.2/keycloak-26.6.2.zip
|
|
dest: /tmp/keycloak
|
|
mode: '0640'
|
|
validate_certs: false
|
|
delegate_to: localhost
|
|
run_once: true
|
|
ignore_errors: true
|