16 lines
674 B
YAML
16 lines
674 B
YAML
|
services_all_services: "{{
|
||
|
services_all_hosts | map('extract', hostvars, 'services_host_services') | map('dict2items') |
|
||
|
flatten | items2dict }}"
|
||
|
services_rproxy_nginx_add_hosts: "\
|
||
|
{% set add_host_list = [] %}\
|
||
|
{% for service in ( services_all_services | dict2items ) %}\
|
||
|
{{ add_host_list.append('--add-host=pod-' ~ service.key ~ ':' ~ service.value.address) }}\
|
||
|
{% endfor %}\
|
||
|
{{ add_host_list | join(' ') }}"
|
||
|
services_rproxy_nginx_conf_d_files:
|
||
|
- "nginx.conf"
|
||
|
- "nginx-conf.d/cloud.wojciechkozlowski.eu.conf"
|
||
|
- "nginx-conf.d/git.wojciechkozlowski.eu.conf"
|
||
|
- "nginx-conf.d/notes.wojciechkozlowski.eu.conf"
|
||
|
- "nginx-conf.d/wojciechkozlowski.eu.conf"
|