made snake oil certificate option optional
This commit is contained in:
parent
6781423adf
commit
94bd2eabac
3 changed files with 5 additions and 1 deletions
|
|
@ -29,6 +29,9 @@ maps: {}
|
||||||
# force all traffic on ssl, except letsencrypt challenges
|
# force all traffic on ssl, except letsencrypt challenges
|
||||||
force_ssl: True
|
force_ssl: True
|
||||||
|
|
||||||
|
# generate a self signed certificate as default ssl cert
|
||||||
|
snakeoil_default: False
|
||||||
|
|
||||||
# install php-fpm, setup a php-handler upstream and copy a php location snippet to include in configs
|
# install php-fpm, setup a php-handler upstream and copy a php location snippet to include in configs
|
||||||
# either "False", "True" or a dict *phpconfig*, see below for definition
|
# either "False", "True" or a dict *phpconfig*, see below for definition
|
||||||
php: False
|
php: False
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@ nginx:
|
||||||
monitoring: true
|
monitoring: true
|
||||||
php: false
|
php: false
|
||||||
force_ssl: true
|
force_ssl: true
|
||||||
|
snakeoil_default: false
|
||||||
upstreams: {}
|
upstreams: {}
|
||||||
vhosts: {}
|
vhosts: {}
|
||||||
maps: {}
|
maps: {}
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
name: certificates
|
name: certificates
|
||||||
vars:
|
vars:
|
||||||
certificates:
|
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:
|
- debug:
|
||||||
verbosity: 1
|
verbosity: 1
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue