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