]> git.immae.eu Git - perso/Immae/Config/Ansible.git/blobdiff - roles/gnupg/handlers/main.yml
Use variables to fill gpg information
[perso/Immae/Config/Ansible.git] / roles / gnupg / handlers / main.yml
index d32d321d0e66748fc0b115193e3e8cd3abfe49ab..7dc34c710538e038dd60a6dbbc6c75f2d7a3a4fd 100644 (file)
@@ -9,7 +9,7 @@
     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 -"
+  shell: "gpg --armor --export {{ gpg_useremail }} | 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"