Persist gpg passphrase entry

master
Michael Mandl 2020-09-30 08:34:32 +02:00
parent 32751de977
commit d9b915e596
No known key found for this signature in database
GPG Key ID: 4E60F44227F611B4
1 changed files with 7 additions and 2 deletions

View File

@ -13,6 +13,13 @@
dest: "/home/{{ account.name }}/bin/pinentry-wsl-ps1.sh"
mode: "0755"
- name: enable session persistence
become_user: "{{ account.name }}"
lineinfile:
path: "/home/{{ account.name }}/bin/pinentry-wsl-ps1.sh"
regexp: "^PERSISTENCE="
line: "PERSISTENCE=\"1\""
- name: ensure gpg-agent is installed
apt:
name: gpg-agent
@ -25,5 +32,3 @@
create: yes
regexp: "^pinentry-program"
line: "pinentry-program /home/{{ account.name }}/bin/pinentry-wsl-ps1.sh"