copy cert to the futur volume

This commit is contained in:
Jean-Marie Mineau 2021-01-26 19:53:14 +01:00
parent f5acec43ec
commit e6d0e397c0

View file

@ -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