Refactor all_services to remove name attribute
This commit is contained in:
parent
6f9f888478
commit
1d14ac888e
16 changed files with 42 additions and 71 deletions
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
backup_list: "{{ host_services | map(attribute='backup') | flatten }}"
|
||||
backup_list_all: "{{ all_services | map(attribute='backup') | flatten }}"
|
||||
backup_list: "{{ host_services | services_get_attr('backup') | flatten }}"
|
||||
backup_list_all: "{{ all_services | services_get_attr('backup') | flatten }}"
|
||||
|
||||
backup_msg_start: "Backup started"
|
||||
backup_msg_fail: "Backup failed"
|
||||
|
|
|
@ -6,7 +6,7 @@ caddy_acmedns_url: "https://{{ acme_dns.host }}"
|
|||
|
||||
caddy_ports_default:
|
||||
- "{{ host_vpn.ip }}:2019:2019"
|
||||
caddy_ports_extra: "{{ host_services | map(attribute='ports') | flatten | services_ports_to_docker('reverse_proxy') }}"
|
||||
caddy_ports_extra: "{{ host_services | services_get_attr('ports') | flatten | services_ports_to_docker('reverse_proxy') }}"
|
||||
caddy_ports: "{{ caddy_ports_default | union(caddy_ports_extra) }}"
|
||||
|
||||
caddy_env:
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
lego_host_certificates: "{{ host_services | map(attribute='certificates') | flatten }}"
|
||||
lego_host_certificates: "{{ host_services | services_get_attr('certificates') | flatten }}"
|
||||
|
||||
lego_env:
|
||||
ACME_DNS_API_BASE: https://{{ acme_dns.host }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue