Skip to content

Commit 69678f5

Browse files
committed
resolve new linting failures
1 parent 44835bc commit 69678f5

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

ansible/roles/sasl/tasks/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@
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

ansible/roles/wireguard/tasks/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,14 @@
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

ansible/roles/wireguard/templates/wg0.conf.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
[Interface]
33
Address = {{ wireguard_subnet }}
44
ListenPort = {{ wireguard_port }}
5-
PrivateKey = {{ wg_priv_key['content'] | b64decode | trim }}
5+
PrivateKey = {{ wireguard_priv_key['content'] | b64decode | trim }}
66

77
PostUp = ip route add local {{ wireguard_subnet }} dev eth0
88
PreDown = 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]
1313
AllowedIPs = {{ hostvars[host]['wireguard_subnet'] }}
14-
PublicKey = {{ hostvars[host]['wg_pub_key']['content'] | b64decode | trim }}
14+
PublicKey = {{ hostvars[host]['wireguard_pub_key']['content'] | b64decode | trim }}
1515
Endpoint = {{ host }}.box.pydis.wtf:{{ wireguard_port }}
1616
PersistentKeepalive = 30
1717

0 commit comments

Comments
 (0)