initial commit

This commit is contained in:
nd 2019-10-13 17:49:12 +02:00
commit ff1cfedadf
No known key found for this signature in database
GPG key ID: 21B5CD4DEE3670E9
6 changed files with 186 additions and 0 deletions

24
tasks/main.yml Normal file
View file

@ -0,0 +1,24 @@
- name: install crypto dependencies
apt:
pkg:
- openssl
- python3-openssl
- python3-cryptography
- name: add group ssl-cert
group:
name: ssl-cert
system: true
- name: set private folder owner
file:
path: /etc/ssl/private
mode: 0750
owner: root
group: ssl-cert
- import_tasks: letsencrypt_setup.yml
- include_tasks: "{{ certificates.certs[certname].backend|default(certificates.defaults.backend) }}_cert.yml"
loop: "{{ certificates.certs.keys()|list }}"
loop_control:
loop_var: certname