--- - 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 {{ 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 . Press key when done"