Skip to content

Commit c2a52e5

Browse files
committed
vpn-wireguard: fixed minor lint warnings
1 parent a3bbb10 commit c2a52e5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

roles/vpn-wireguard/tasks/backup/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
- name: Store the public and the private keys in the password store
2323
when: creds.store == 'community.general.passwordstore'
24+
tags: backup
2425
block:
2526
- name: Store the private key
2627
no_log: '{{ hide_secrets }}'
@@ -33,12 +34,12 @@
3334
_: >-
3435
{{ lookup(creds.store, creds.prefix + "/wireguard/public-key",
3536
create=true, missing="create", userpass=public_key) }}
36-
tags: backup
3737
3838
- name: Store the public and the private keys in plain text files
3939
when: creds.store == 'ansible.builtin.password'
4040
delegate_to: localhost
4141
become: false
42+
tags: backup
4243
block:
4344
- name: Create credentials directory
4445
ansible.builtin.file:
@@ -56,4 +57,3 @@
5657
content: '{{ public_key }}'
5758
dest: '{{ backup_directory }}/wireguard/public-key'
5859
mode: '0600'
59-
tags: backup

roles/vpn-wireguard/tasks/restore/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
22

3-
- name: load the public key from the credentials store
3+
- name: Load the public key from the credentials store
44
ansible.builtin.set_fact:
55
public_key: >-
66
{{ lookup(creds.store, creds.prefix + "/wireguard/public-key") }}
77
tags: restore
88

9-
- name: load the private key from the credentials store
9+
- name: Load the private key from the credentials store
1010
no_log: '{{ hide_secrets }}'
1111
ansible.builtin.set_fact:
1212
private_key: >-

0 commit comments

Comments
 (0)