summaryrefslogtreecommitdiff
path: root/roles/gnupg/handlers
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@fretlink.com>2018-11-06 12:09:50 +0100
committerIsmaël Bouya <ismael.bouya@fretlink.com>2018-11-06 12:16:15 +0100
commitb6984948ccd39e4aba15f02822703edebecb6bb7 (patch)
tree81987f45d9dcc723aefc0b769f4c47aefe295a56 /roles/gnupg/handlers
parentc235f9bea368316f1c1a441ebf6877e05e7df21c (diff)
downloadAnsible-b6984948ccd39e4aba15f02822703edebecb6bb7.tar.gz
Ansible-b6984948ccd39e4aba15f02822703edebecb6bb7.tar.zst
Ansible-b6984948ccd39e4aba15f02822703edebecb6bb7.zip
Add gpg configuration, key generation and password store
Diffstat (limited to 'roles/gnupg/handlers')
-rw-r--r--roles/gnupg/handlers/main.yml15
1 files changed, 15 insertions, 0 deletions
diff --git a/roles/gnupg/handlers/main.yml b/roles/gnupg/handlers/main.yml
new file mode 100644
index 0000000..d32d321
--- /dev/null
+++ b/roles/gnupg/handlers/main.yml
@@ -0,0 +1,15 @@
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"