mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
remove quotes from boolean logic in Ansible jinja2 template
This commit is contained in:
parent
84ba063640
commit
fb3849e390
1 changed files with 6 additions and 6 deletions
|
@ -57,20 +57,20 @@ static ip_address={{ lan_ip }}/19
|
||||||
static domain_name_servers=127.0.0.1
|
static domain_name_servers=127.0.0.1
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
# IIAB static IP configuration:
|
# IIAB static IP configuration, alongside optional DHCP & link-local:
|
||||||
{% if wan_ip != "dhcp" %}
|
{% if wan_ip != "dhcp" %}
|
||||||
profile {{ wan_gateway }}
|
profile {{ wan_gateway }}
|
||||||
static ip_address={{ wan_ip }}/24
|
static ip_address={{ wan_ip }}/24
|
||||||
static routers={{ wan_gateway }}
|
static routers={{ wan_gateway }}
|
||||||
static domain_name_servers={{ wan_nameserver }}
|
static domain_name_servers={{ wan_nameserver }}
|
||||||
|
{% if wan_can_use_dhcp_ip %}
|
||||||
|
|
||||||
{% if wan_can_use_dhcp_ip == "true" %}
|
|
||||||
interface {{ iiab_wan_iface }}
|
interface {{ iiab_wan_iface }}
|
||||||
{% if wan_link_local == "false" %}
|
{% if not wan_link_local %}
|
||||||
arping 192.0.2.1 # Set Ethernet IP per "cablemodem" DHCP, if DHCP's on wire (after arp request to non-existent IP 192.0.2.1 intentionally fails, per RFC5737)
|
arping 192.0.2.1 # Set Ethernet IP per "cablemodem" DHCP, if DHCP's on wire (after arp request to non-existent IP 192.0.2.1 fails on purpose, per RFC5737)
|
||||||
fallback {{ wan_gateway }} # If DHCP not detected after <dhcp_timeout> seconds, set Ethernet Static IP per "profile <wan_gateway>"
|
fallback {{ wan_gateway }} # If DHCP not detected after {{ dhcp_timeout }} seconds, set Ethernet Static IP per above "profile {{ wan_gateway }}"
|
||||||
{% else %}
|
{% else %}
|
||||||
arping {{ wan_gateway }} # Perform up to 3 steps: 1. arp <wan_gateway> (if detected, set Ethernet Static IP per "profile <wan_gateway>") 2. Set Ethernet IP per "cablemodem" DHCP, if DHCP's on wire 3. If nec, set Ethernet IP to a link-local address (169.254.x.y)
|
arping {{ wan_gateway }} # Perform up to 3 steps: 1. arp <wan_gateway> (if detected, set Ethernet Static IP per "profile {{ wan_gateway }}") 2. Set Ethernet IP per "cablemodem" DHCP, if DHCP's on wire 3. If nec, set Ethernet IP to a link-local address (169.254.x.y)
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue