Replace fixed value with variables

This commit is contained in:
Freifunk Troisdorf 2019-02-09 12:38:48 +01:00
parent ce71e12139
commit 09f971ff9c
2 changed files with 4 additions and 4 deletions

View File

@ -3,9 +3,9 @@
sleep 60
batctl=/usr/local/sbin/batctl
ip=/sbin/ip
communitymacaddress="a2:8c:ae:6f:f6"
communitymacaddress="{{ communitymac }}"
localserver=$(/bin/hostname)
communityname=troisdorf
communityname={{ communityname }}
# Rest Starten
$ip link set address $communitymacaddress:0${localserver#$communityname} dev bat0

View File

@ -4,7 +4,7 @@ address={{ ansible_default_ipv4.address }}
; Ports where the broker will listen on
port={{ sn_l2tp_tb_port }}
; Interface with that IP address
interface=ens18
interface={{ sn_interface_name }}
; Maximum number of cached cookies, required for establishing a
; session with the broker
max_cookies=1024
@ -21,7 +21,7 @@ pmtu_discovery=false
; Namespace (for running multiple brokers); note that you must also
; configure disjunct ports, and tunnel identifiers in order for
; namespacing to work
namespace=troisdorf
namespace={{ communityname }}
; Reject connections if there are less than N seconds since the last connection.
; Can be less than a second (e.g., 0.1).