diff options
-rw-r--r-- | roles/gnupg/handlers/main.yml | 2 | ||||
-rw-r--r-- | site.yml | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/roles/gnupg/handlers/main.yml b/roles/gnupg/handlers/main.yml index d32d321..7dc34c7 100644 --- a/roles/gnupg/handlers/main.yml +++ b/roles/gnupg/handlers/main.yml | |||
@@ -9,7 +9,7 @@ | |||
9 | prompt: "gpg key will be sent to immae.eu, please login to tmux and give passwords there." | 9 | prompt: "gpg key will be sent to immae.eu, please login to tmux and give passwords there." |
10 | seconds: 3 | 10 | seconds: 3 |
11 | - name: send key to immae@immae.eu | 11 | - name: send key to immae@immae.eu |
12 | shell: "gpg --armor --export ismael@flony | ssh immae@immae.eu add_workstation_key | gpg --import -" | 12 | shell: "gpg --armor --export {{ gpg_useremail }} | ssh immae@immae.eu add_workstation_key | gpg --import -" |
13 | - name: notify add key to password store | 13 | - name: notify add key to password store |
14 | pause: | 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" | 15 | prompt: "Please add the key to the password store and push: pass init -p Folder/Folder <key> <key>. Press key when done" |
@@ -1,10 +1,10 @@ | |||
1 | --- | 1 | --- |
2 | - hosts: home | 2 | - hosts: home |
3 | vars: | 3 | vars: |
4 | gpg_useremail: "ismael@flony" | 4 | gpg_useremail: "{{ gpg_user }}@{{ ansible_hostname }}" |
5 | gpg_realname: "Ismaël Bouya" | 5 | gpg_realname: "Ismaël Bouya" |
6 | gpg_user: "ismael" | 6 | gpg_user: "{{ lookup('env', 'USER') }}" |
7 | profile: "flony" | 7 | profile: "{{ ansible_hostname }}" |
8 | role: | 8 | role: |
9 | flony: "fretlink" | 9 | flony: "fretlink" |
10 | features: | 10 | features: |