generate certificates

This commit is contained in:
Jean-Marie Mineau 2021-01-26 21:24:21 +01:00
parent a4ad9dc285
commit 2f6663b164
3 changed files with 13 additions and 0 deletions

View file

@ -4,4 +4,5 @@
- hosts: gitea_host - hosts: gitea_host
roles: roles:
- install_docker - install_docker
- generate_self_signed_certificate
- install_gitea - install_gitea

1
hosts
View file

@ -31,3 +31,4 @@ all:
gitea_host: gitea_host:
hosts: hosts:
vb1: vb1:
server_hostname: 10.0.2.11

View file

@ -20,3 +20,14 @@
docker_compose: docker_compose:
project_src: /var/local/gitea project_src: /var/local/gitea
- 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