initial commit
This commit is contained in:
commit
ff1cfedadf
6 changed files with 186 additions and 0 deletions
24
tasks/main.yml
Normal file
24
tasks/main.yml
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue