-
Notifications
You must be signed in to change notification settings - Fork 7
/
main.yml
32 lines (29 loc) · 1.9 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
---
credentials_file: credentials.yml
# Use Ansible host FQDN for certificate common name
certificate_common_name: "{{ ansible_fqdn }}"
# Directory where to place certificates
certificate_cert_dir: "/etc/ssl/{{ certificate_common_name }}"
# Paths for certificate and keys
certificate_cert_path: "{{ certificate_cert_dir }}/{{ certificate_common_name }}.pem"
certificate_cert_path_pkcs12: "{{ certificate_cert_dir }}/{{ certificate_common_name }}.p12"
certificate_chain_path: "{{ certificate_cert_dir }}/{{ certificate_common_name }}.chain.pem"
certificate_privatekey_path: "{{ certificate_cert_dir }}/{{ certificate_common_name }}.key"
certificate_csr_path: "{{ certificate_cert_dir }}/{{ certificate_common_name }}.csr"
# Set to true, if you want to use PKCS#12 format instead of PEM
certificate_pkcs12_format: false
# Where to execute venafi_certificate module. If set to false, certificate will be
# created on ansible master host and then copied to the remote server
certificate_remote_execution: false
# Remote location where to place the certificate_
certificate_remote_cert_path: "{{ certificate_cert_dir }}/{{ certificate_common_name }}.pem"
certificate_remote_cert_path_pkcs12: "{{ certificate_cert_dir }}/{{ certificate_common_name }}.p12"
certificate_remote_chain_path: "{{ certificate_cert_dir }}/{{ certificate_common_name }}.chain.pem"
certificate_remote_privatekey_path: "{{ certificate_cert_dir }}/{{ certificate_common_name }}.key"
# Set to false, if you don't want to copy private key to remote location
certificate_copy_private_key_to_remote: true
# Indicates the strategy to generate the Certificate Signing Request. Values are: provided, local, service
# provided: the user provides a CSR file using certificate_csr_path
# local: a CSR will be generated using the values from certificate_privatekey_xxx fields
# service: a CSR will be generated on the server, using the server settings
certificate_csr_origin: "local"