File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 100100# BEGIN temporary tasks. Can be removed after initial deploy.
101101- name : Remove Postfix from SASL group
102102 command : " gpasswd -d postfix sasl"
103- register : command_result
104- changed_when : " not 'is not a member of' in command_result .stderr"
103+ register : sasl_postfix_command_result
104+ changed_when : " not 'is not a member of' in sasl_postfix_command_result .stderr"
105105 failed_when : false
106106 tags :
107107 - role::sasl
Original file line number Diff line number Diff line change 5555- name : Fetch private key for all hosts
5656 slurp :
5757 src : /etc/wireguard/key.priv
58- register : wg_priv_key
58+ register : wireguard_priv_key
5959 tags :
6060 - role::wireguard
6161
6262- name : Fetch public key for all hosts
6363 slurp :
6464 src : /etc/wireguard/key.pub
65- register : wg_pub_key
65+ register : wireguard_pub_key
6666 tags :
6767 - role::wireguard
6868
Original file line number Diff line number Diff line change 22[Interface]
33Address = {{ wireguard_subnet }}
44ListenPort = {{ wireguard_port }}
5- PrivateKey = {{ wg_priv_key ['content'] | b64decode | trim }}
5+ PrivateKey = {{ wireguard_priv_key ['content'] | b64decode | trim }}
66
77PostUp = ip route add local {{ wireguard_subnet }} dev eth0
88PreDown = ip route del local {{ wireguard_subnet }} dev eth0
@@ -11,7 +11,7 @@ PreDown = ip route del local {{ wireguard_subnet }} dev eth0
1111# Peer config for: {{ host }}
1212[Peer]
1313AllowedIPs = {{ hostvars[host] ['wireguard_subnet'] }}
14- PublicKey = {{ hostvars[host] ['wg_pub_key '] ['content'] | b64decode | trim }}
14+ PublicKey = {{ hostvars[host] ['wireguard_pub_key '] ['content'] | b64decode | trim }}
1515Endpoint = {{ host }}.box.pydis.wtf:{{ wireguard_port }}
1616PersistentKeepalive = 30
1717
You can’t perform that action at this time.
0 commit comments