]> git.immae.eu Git - perso/Immae/Config/Ansible.git/blobdiff - roles/gnupg/handlers/main.yml
Add gpg configuration, key generation and password store
[perso/Immae/Config/Ansible.git] / roles / gnupg / handlers / main.yml
diff --git a/roles/gnupg/handlers/main.yml b/roles/gnupg/handlers/main.yml
new file mode 100644 (file)
index 0000000..d32d321
--- /dev/null
@@ -0,0 +1,15 @@
+---
+- name: restart gpg-agent
+  systemd:
+    state: restarted
+    name: gpg-agent.service
+    scope: user
+- name: notify add key to immae@immae.eu
+  pause:
+    prompt: "gpg key will be sent to immae.eu, please login to tmux and give passwords there."
+    seconds: 3
+- name: send key to immae@immae.eu
+  shell: "gpg --armor --export ismael@flony | ssh immae@immae.eu add_workstation_key | gpg --import -"
+- name: notify add key to password store
+  pause:
+    prompt: "Please add the key to the password store and push: pass init -p Folder/Folder <key> <key>. Press key when done"