2020-09-19 21:39:57 +02:00
|
|
|
---
|
|
|
|
- name: Install python3-cryptography library
|
|
|
|
become: true
|
|
|
|
apt:
|
|
|
|
name: python3-cryptography
|
|
|
|
state: present
|
2020-09-20 00:12:35 +02:00
|
|
|
|
|
|
|
- name: Create directories for storing certificates
|
|
|
|
become: true
|
|
|
|
file:
|
|
|
|
path: "/etc/{{ item.name }}"
|
|
|
|
state: directory
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: "{{ item.mode }}"
|
|
|
|
loop:
|
|
|
|
- name: ssl
|
|
|
|
mode: u=rwx,g=rx,o=rx
|
|
|
|
- name: ssl/private
|
|
|
|
mode: u=rwx,g=,o=
|
|
|
|
- name: ssl/csr
|
|
|
|
mode: u=rwx,g=,o=
|
|
|
|
- name: ssl/certs
|
|
|
|
mode: u=rwx,g=rx,o=rx
|
2020-09-19 21:39:57 +02:00
|
|
|
...
|