made snake oil certificate option optional

This commit is contained in:
nd 2020-04-30 20:01:35 +02:00
parent 6781423adf
commit 94bd2eabac
No known key found for this signature in database
GPG key ID: 21B5CD4DEE3670E9
3 changed files with 5 additions and 1 deletions

View file

@ -8,7 +8,7 @@
name: certificates
vars:
certificates:
certs: "{{ {}|combine(selfsigned_cert|from_yaml, nginx_certs, inventory_certs, recursive=True) }}"
certs: "{{ {}|combine( (selfsigned_cert|from_yaml if nginx.snakeoil_default else {}), nginx_certs, inventory_certs, recursive=True) }}"
- debug:
verbosity: 1