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"
---
- hosts: home
vars:
- gpg_useremail: "ismael@flony"
+ gpg_useremail: "{{ gpg_user }}@{{ ansible_hostname }}"
gpg_realname: "Ismaël Bouya"
- gpg_user: "ismael"
- profile: "flony"
+ gpg_user: "{{ lookup('env', 'USER') }}"
+ profile: "{{ ansible_hostname }}"
role:
flony: "fretlink"
features: