speed up certificate handling
This commit is contained in:
parent
e71de82cdf
commit
eb2e8df0ae
1 changed files with 1 additions and 1 deletions
|
|
@ -2,7 +2,7 @@
|
||||||
- name: store nginx vars
|
- name: store nginx vars
|
||||||
set_fact:
|
set_fact:
|
||||||
nginx_certs: "{{ nginx.vhosts|nginx_vhosts_to_certificates }}"
|
nginx_certs: "{{ nginx.vhosts|nginx_vhosts_to_certificates }}"
|
||||||
inventory_certs: "{{ certificates.certs|d({}) }}"
|
inventory_certs: "{{ certificates.certs|d({}) | dict2items | selectattr ('key', 'regex', '^nginx_') | items2dict }}"
|
||||||
selfsigned_cert: "{ '{{ inventory_hostname }}': { 'backend': 'selfsigned' }}"
|
selfsigned_cert: "{ '{{ inventory_hostname }}': { 'backend': 'selfsigned' }}"
|
||||||
|
|
||||||
- name: generate certificates for vhosts
|
- name: generate certificates for vhosts
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue