ssl / tsl and storage of document
This commit is contained in:
18
tasks/chill/self_signed.yml
Normal file
18
tasks/chill/self_signed.yml
Normal 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
|
||||
|
Reference in New Issue
Block a user