[user]
- signingkey = DC384748709D2619FF2867216D0CAFFDDB1CFE90
+ signingkey = {{ gpg_sign_id }}
{% if profile in role and role[profile] == "fretlink" %}
email = ismael.bouya@fretlink.com
{% else %}
dest: "$XDG_CONFIG_HOME/gnupg/{{ item }}"
loop:
- gpg-agent.conf
- - gpg.conf
+- name: gpg config file
+ template:
+ src: "gpg.conf.j2"
+ dest: "$XDG_CONFIG_HOME/gnupg/gpg.conf"
- name: Get gnupg runtime folder name
shell: 'gpgconf --list-dirs socketdir | sed -e "s@$XDG_RUNTIME_DIR/gnupg/@@"'
register: gnupg_runtime_dir_cmd
# Main signing key
-default-key DB1CFE90
+default-key {{ gpg_sign_id }}
default-recipient-self
-encrypt-to 0326A611
+encrypt-to {{ gpg_sign_id }}
auto-key-retrieve
no-greeting
gpg_useremail: "{{ gpg_user }}@{{ ansible_hostname }}"
gpg_realname: "Ismaël Bouya"
gpg_user: "{{ lookup('env', 'USER') }}"
+ gpg_sign_id: "F82806FDA1BF5B9A1B3014E7C9FCED6CA6B79454"
profile: "{{ ansible_hostname }}"
role:
flony: "fretlink"