diff --git a/defaults/main.yml b/defaults/main.yml index 1d1f9e3..16a9abe 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -2,6 +2,10 @@ certificate_directory: /etc/ssl certificate_common_name: "{{ inventory_hostname }}" +certificate_alt_names: + - "DNS:{{ inventory_hostname }}" + + certificate_name: "{{ certificate_common_name | regex_replace(' ', '_') }}" certificate_file: "{{ certificate_directory }}/certs/{{ certificate_name }}.cert.pem" certificate_chain_file: "{{ certificate_directory }}/certs/{{ certificate_name }}.chain.pem"