Fix act_runner cache host configuration

This commit is contained in:
gianfi12
2026-03-13 14:41:16 -07:00
parent 19a76f7af1
commit 741daad8b5
2 changed files with 110 additions and 106 deletions

View File

@@ -42,7 +42,9 @@ cache:
# The host of the cache server.
# It's not for the address to listen, but the address to connect from job containers.
# So 0.0.0.0 is a bad choice, leave it empty to detect automatically.
host: "{{ ansible_facts[vault_act_net_interface_name]['ipv4']['address'] }}"
# Prefer an explicit override; otherwise use the default routed IPv4 instead of
# an arbitrary interface-specific address.
host: "{{ vault_act_runner_cache_host | default(ansible_facts.get('default_ipv4', {}).get('address', ansible_facts[vault_act_net_interface_name]['ipv4']['address']), true) }}"
# The port of the cache server.
# 0 means to use a random available port.
port: 8088