mirror of
https://github.com/ansible-middleware/keycloak.git
synced 2025-08-21 21:41:53 -07:00
Test: Installation of key material via Ansible role
This commit is contained in:
parent
9bc1ae69e9
commit
7141e1c9b2
2 changed files with 9 additions and 11 deletions
|
@ -14,11 +14,11 @@
|
|||
delegate_to: localhost
|
||||
changed_when: False
|
||||
|
||||
- name: Create conf directory # risky-file-permissions in test user account does not exist yet
|
||||
- name: Create vault directory
|
||||
become: true
|
||||
ansible.builtin.file:
|
||||
state: directory
|
||||
path: "/opt/keycloak/certs/"
|
||||
path: "/opt/keycloak/vault"
|
||||
mode: 0755
|
||||
|
||||
- name: Make sure a jre is available (for keytool to prepare keystore)
|
||||
|
@ -39,10 +39,6 @@
|
|||
- name: Copy certificates and vault
|
||||
become: true
|
||||
ansible.builtin.copy:
|
||||
src: "{{ item }}"
|
||||
dest: "/opt/keycloak/certs/{{ item }}"
|
||||
src: keystore.p12
|
||||
dest: /opt/keycloak/vault/keystore.p12
|
||||
mode: 0444
|
||||
loop:
|
||||
- cert.pem
|
||||
- key.pem
|
||||
- keystore.p12
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue