mirror of
https://github.com/ansible-middleware/keycloak.git
synced 2025-04-06 10:50:31 -07:00
ci: test alternate certs dir
This commit is contained in:
parent
d469d5df8b
commit
0fbf454279
2 changed files with 4 additions and 6 deletions
|
@ -8,8 +8,8 @@
|
||||||
keycloak_quarkus_host: instance
|
keycloak_quarkus_host: instance
|
||||||
keycloak_quarkus_log: file
|
keycloak_quarkus_log: file
|
||||||
keycloak_quarkus_https_key_file_enabled: True
|
keycloak_quarkus_https_key_file_enabled: True
|
||||||
keycloak_quarkus_key_file: "{{ keycloak.home }}/conf/key.pem"
|
keycloak_quarkus_key_file: "/opt/keycloak/certs/key.pem"
|
||||||
keycloak_quarkus_cert_file: "{{ keycloak.home }}/conf/cert.pem"
|
keycloak_quarkus_cert_file: "/opt/keycloak/certs/cert.pem"
|
||||||
keycloak_quarkus_log_target: /tmp/keycloak
|
keycloak_quarkus_log_target: /tmp/keycloak
|
||||||
roles:
|
roles:
|
||||||
- role: keycloak_quarkus
|
- role: keycloak_quarkus
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
---
|
---
|
||||||
- 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:
|
||||||
|
@ -21,13 +19,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-{{ version }}/conf/"
|
path: "/opt/keycloak/certs/"
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
|
||||||
- name: Copy certificates
|
- name: Copy certificates
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
src: "{{ item }}"
|
src: "{{ item }}"
|
||||||
dest: "/opt/keycloak/keycloak-{{ version }}/conf/{{ item }}"
|
dest: "/opt/keycloak/certs/{{ item }}"
|
||||||
mode: 0444
|
mode: 0444
|
||||||
loop:
|
loop:
|
||||||
- cert.pem
|
- cert.pem
|
||||||
|
|
Loading…
Add table
Reference in a new issue