Skip to content

Commit 43ea072

Browse files
committed
Hotfix: use umask instead of chmod to change permissions of WireGuard keys
1 parent fb634b5 commit 43ea072

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575

7676

7777
- name: Generate WireGuard private and public keys
78-
shell: wg genkey | tee /etc/wireguard/privatekey | wg pubkey > /etc/wireguard/publickey | chmod 600 /etc/wireguard/privatekey
78+
shell: umask 077 && wg genkey | tee /etc/wireguard/privatekey | wg pubkey > /etc/wireguard/publickey
7979

8080

8181
- name: Register WireGuard private key as a variable

0 commit comments

Comments
 (0)