]> git.immae.eu Git - perso/Immae/Config/Ansible.git/blob - roles/gnupg/handlers/main.yml
Add gpg configuration, key generation and password store
[perso/Immae/Config/Ansible.git] / roles / gnupg / handlers / main.yml
1 ---
2 - name: restart gpg-agent
3 systemd:
4 state: restarted
5 name: gpg-agent.service
6 scope: user
7 - name: notify add key to immae@immae.eu
8 pause:
9 prompt: "gpg key will be sent to immae.eu, please login to tmux and give passwords there."
10 seconds: 3
11 - name: send key to immae@immae.eu
12 shell: "gpg --armor --export ismael@flony | ssh immae@immae.eu add_workstation_key | gpg --import -"
13 - name: notify add key to password store
14 pause:
15 prompt: "Please add the key to the password store and push: pass init -p Folder/Folder <key> <key>. Press key when done"