diff options
| author | Ahmed Abdelhalim <[email protected]> | 2025-09-23 12:41:14 +0200 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2025-09-23 12:43:54 +0200 |
| commit | 889bc61b6ca572e1f3718d8b1723248c73e747e4 (patch) | |
| tree | c228694051b8a19cf8f22c47160f6fa34ef8bee8 /roles/gateway | |
| parent | d1853692be4764d26f78c3ad86704f737dc5d141 (diff) | |
Use static values for defaults instead of ansible vars
The ansible vars fail on CI because the validate arguments task runs way
before the setting of the variables, which causes the ansible undefined
vars on CI to cause errors.
This is a way better approach of having the static values as defaults
and allowing setting the variables to ansible vars in the host/group vars
Diffstat (limited to 'roles/gateway')
| -rw-r--r-- | roles/gateway/defaults/main.yml | 2 | ||||
| -rw-r--r-- | roles/gateway/meta/argument_specs.yml | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/roles/gateway/defaults/main.yml b/roles/gateway/defaults/main.yml index 4f062143..ebe33a12 100644 --- a/roles/gateway/defaults/main.yml +++ b/roles/gateway/defaults/main.yml @@ -1,3 +1,3 @@ --- gateway_enabled: false -gateway_router_interface: "{{ ansible_default_ipv4.interface }}" +gateway_router_interface: "eth0" diff --git a/roles/gateway/meta/argument_specs.yml b/roles/gateway/meta/argument_specs.yml index 0312bef2..e5d14e35 100644 --- a/roles/gateway/meta/argument_specs.yml +++ b/roles/gateway/meta/argument_specs.yml @@ -16,5 +16,5 @@ argument_specs: gateway_router_interface: description: "Default route interface for direct routing mode" type: "str" - default: "{{ ansible_default_ipv4.interface }}" + default: "eth0" required: false |
