copy cert to the futur volume
This commit is contained in:
parent
f5acec43ec
commit
e6d0e397c0
1 changed files with 17 additions and 0 deletions
|
@ -16,6 +16,23 @@
|
||||||
owner: root
|
owner: root
|
||||||
group: staff
|
group: staff
|
||||||
|
|
||||||
|
- name: Ensure the certificate directory exist
|
||||||
|
file:
|
||||||
|
path: /var/local/keycloak/certificates
|
||||||
|
state: directory
|
||||||
|
|
||||||
|
- name: Copy key
|
||||||
|
copy:
|
||||||
|
src: /var/certificates/{{ server_hostname }}_privkey.pem
|
||||||
|
dest: /var/local/keycloak/certificates/tls.key
|
||||||
|
remote_src: yes
|
||||||
|
|
||||||
|
- name: Copy certificate
|
||||||
|
copy:
|
||||||
|
src: /var/certificates/{{ server_hostname }}_cert.pem
|
||||||
|
dest: /var/local/keycloak/certificates/tls.crt
|
||||||
|
remote_src: yes
|
||||||
|
|
||||||
- name: Copy docker-compose.yml
|
- name: Copy docker-compose.yml
|
||||||
template:
|
template:
|
||||||
src: docker-compose.yml.j2
|
src: docker-compose.yml.j2
|
||||||
|
|
Loading…
Reference in a new issue