Install pinentry-powershell to wsl

master
Michael Mandl 2020-09-14 10:04:10 +02:00
parent 9777b74f64
commit c76e96d1c1
No known key found for this signature in database
GPG Key ID: 4E60F44227F611B4
2 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,29 @@
---
- name: ensure user/bin exists
become_user: "{{ account.name }}"
file:
path: "/home/{{ account.name }}/bin"
state: directory
mode: "0777"
- name: download script
become_user: "{{ account.name }}"
get_url:
url: https://github.com/diablodale/pinentry-wsl-ps1/raw/master/pinentry-wsl-ps1.sh
dest: "/home/{{ account.name }}/bin/pinentry-wsl-ps1.sh"
mode: "0755"
- name: ensure gpg-agent is installed
apt:
name: gpg-agent
state: latest
- name: enable script in gpg-agent
become_user: "{{ account.name }}"
lineinfile:
path: "/home/{{ account.name }}/.gnupg/gpg-agent.conf"
create: yes
regexp: "^pinentry-program"
line: "pinentry-program /home/{{ account.name }}/bin/pinentry-wsl-ps1.sh"

View File

@ -15,3 +15,4 @@
- zsh
- neovim
- tools
- pinentry-wsl