ci: downstream use correct version

This commit is contained in:
Guido Grazioli 2023-12-06 18:24:29 +01:00
parent ac0b421456
commit a23bf4c540

View file

@ -1,6 +1,8 @@
--- ---
- name: Prepare - name: Prepare
hosts: all hosts: all
vars:
version: "{{ '22.0.6' if rhbk_enable is defined and rhbk_enable else '23.0.1' }}"
tasks: tasks:
- name: Install sudo - name: Install sudo
ansible.builtin.yum: ansible.builtin.yum:
@ -19,13 +21,13 @@
- name: Create conf directory # risky-file-permissions in test user account does not exist yet - name: Create conf directory # risky-file-permissions in test user account does not exist yet
ansible.builtin.file: ansible.builtin.file:
state: directory state: directory
path: /opt/keycloak/keycloak-23.0.1/conf/ path: "/opt/keycloak/keycloak-{{ version }}/conf/"
mode: 0755 mode: 0755
- name: Copy certificates - name: Copy certificates
ansible.builtin.copy: ansible.builtin.copy:
src: "{{ item }}" src: "{{ item }}"
dest: "/opt/keycloak/keycloak-23.0.1/conf/{{ item }}" dest: "/opt/keycloak/keycloak-{{ version }}/conf/{{ item }}"
mode: 0444 mode: 0444
loop: loop:
- cert.pem - cert.pem