fix: use ansible_facts instead of ansible_* variables
This commit is contained in:
@@ -6,7 +6,7 @@ base_volume_path: /mnt/dock
|
|||||||
media_volume_path: /mnt/media
|
media_volume_path: /mnt/media
|
||||||
|
|
||||||
docker_ipv6_subnet: "{{ \
|
docker_ipv6_subnet: "{{ \
|
||||||
ansible_default_ipv6.address \
|
ansible_facts['default_ipv6'].address \
|
||||||
| ansible.utils.ipsubnet(64) \
|
| ansible.utils.ipsubnet(64) \
|
||||||
| ansible.utils.ipsubnet(72, docker_ipv6_index) \
|
| ansible.utils.ipsubnet(72, docker_ipv6_index) \
|
||||||
}}"
|
}}"
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ MAIL_FROM_ADDRESS=nc
|
|||||||
MAIL_DOMAIN=cazzzer.com
|
MAIL_DOMAIN=cazzzer.com
|
||||||
|
|
||||||
# host IPv4 and IPv6 addresses, loopback for notify_push
|
# host IPv4 and IPv6 addresses, loopback for notify_push
|
||||||
TRUSTED_PROXIES={{ hostvars[inventory_hostname]['ansible_default_ipv4']['address'] }} {{ hostvars[inventory_hostname]['ansible_default_ipv6']['address'] }} 127.0.0.1 ::1
|
TRUSTED_PROXIES={{ ansible_facts['default_ipv4'].address }} {{ ansible_facts['default_ipv6'].address }} 127.0.0.1 ::1
|
||||||
OVERWRITEHOST=nc.{{ domain }}
|
OVERWRITEHOST=nc.{{ domain }}
|
||||||
OVERWRITEPROTOCOL=https
|
OVERWRITEPROTOCOL=https
|
||||||
OVERWRITECLIURL=https://nc.{{ domain }}
|
OVERWRITECLIURL=https://nc.{{ domain }}
|
||||||
|
|||||||
Reference in New Issue
Block a user