fix linter errors
This commit is contained in:
parent
30fc930c4d
commit
aa1de02b8c
6 changed files with 43 additions and 20 deletions
|
|
@ -1,6 +1,8 @@
|
|||
- set_fact:
|
||||
- name: store base cert path
|
||||
set_fact:
|
||||
basepath: "/etc/ssl"
|
||||
- set_fact:
|
||||
- name: store cert path
|
||||
set_fact:
|
||||
cert_paths:
|
||||
csrpath: "{{ basepath + '/' + certname + '.csr' }}"
|
||||
capath: "{{ basepath + '/' + certname + '.ca' }}"
|
||||
|
|
@ -8,18 +10,23 @@
|
|||
certpath: "{{ basepath + '/' + certname + '.crt' }}"
|
||||
chainpath: "{{ basepath + '/' + certname + '.chain.crt' }}"
|
||||
fullpath: "{{ basepath + '/private/' + certname + '.complete.pem' }}"
|
||||
- set_fact:
|
||||
- name: store cert object
|
||||
set_fact:
|
||||
cert: "{{ {}|combine(certificates.defaults, cert_paths, certificates.certs[certname]|d({}), {'name': certname}, recursive=True ) }}"
|
||||
- set_fact:
|
||||
- name: store cert_backend object
|
||||
set_fact:
|
||||
cert_backend: "{{ {}|combine(certificates.backends[cert.backend], cert.backend_override|d({}), recursive=True) }}"
|
||||
|
||||
- debug:
|
||||
- name: debug cert object
|
||||
debug:
|
||||
verbosity: 1
|
||||
var: cert
|
||||
- debug:
|
||||
- name: debug cert_backend object
|
||||
debug:
|
||||
verbosity: 1
|
||||
var: cert_backend
|
||||
- debug:
|
||||
- name: debug inventory certs object
|
||||
debug:
|
||||
verbosity: 1
|
||||
var: certificates.certs[certname]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue