Fix permissions with https keys and certs

This commit is contained in:
Salt 2020-02-20 03:56:51 -06:00
parent e8cd7dc58a
commit 508d7889ba

View File

@ -10,7 +10,6 @@
file:
path: "{{ item.dir }}"
mode: "{{ item.mode }}"
recurse: yes
owner: root
group: www-data
state: directory
@ -26,6 +25,7 @@
- name: Create certificate key
openssl_privatekey:
path: "/etc/pki/cert/private/{{ website_url }}.key"
mode: "0750"
- name: Create CSR
openssl_csr:
path: "/etc/pki/cert/csr/{{ website_url }}.csr"