ssl / tsl and storage of document

This commit is contained in:
julienfastre committed 2024-12-30 11:37:55 +01:00
1 parent bf2e38ad51
commit c6b32d6005
7 files changed
+74 -7

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
- name: Create directory for storing certificates
ansible.builtin.file:
path: "/var/traefik/certs/chill/{{ item['chill_environment'] }}"
state: directory
owner: "{{ as_user }}"
mode: '0400'
- name: Create private key
community.crypto.openssl_privatekey:
path: "/var/traefik/certs/chill/{{ item['chill_environment'] }}/key.pem"
- name: Create self signed certificate
community.crypto.x509_certificate:
privatekey_path: "/var/traefik/certs/chill/{{ item['chill_environment'] }}/key.pem"
path: "/var/traefik/certs/chill/{{ item['chill_environment'] }}/cert.pem"
provider: selfsigned