File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
roles/vpn-wireguard/tasks Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 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 }}'
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 :
5657 content : ' {{ public_key }}'
5758 dest : ' {{ backup_directory }}/wireguard/public-key'
5859 mode : ' 0600'
59- tags : backup
Original file line number Diff line number Diff line change 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 : >-
You can’t perform that action at this time.
0 commit comments