shell: 'gpgconf --list-dirs socketdir | sed -e "s@$XDG_RUNTIME_DIR/gnupg/@@"'
register: gnupg_runtime_dir_cmd
changed_when: false
+ check_mode: no
- name: check existing secret key
shell: "gpg --list-secret-keys | grep '{{ gpg_useremail }}'"
changed_when: false
ignore_errors: true
register: gpgkeys
+ check_mode: no
- name: ask for gpg password
pause:
prompt: "Chose gpg password"
[Socket]
ListenStream=
-ListenStream=%t/gnupg/{{ gnupg_runtime_dir_cmd.get('stdout', debug_gnupg_runtime_dir) }}/S.dirmngr
+ListenStream=%t/gnupg/{{ gnupg_runtime_dir_cmd.stdout }}/S.dirmngr
[Socket]
ListenStream=
-ListenStream=%t/gnupg/{{ gnupg_runtime_dir_cmd.get('stdout', debug_gnupg_runtime_dir) }}/S.gpg-agent.browser
+ListenStream=%t/gnupg/{{ gnupg_runtime_dir_cmd.stdout }}/S.gpg-agent.browser
[Socket]
ListenStream=
-ListenStream=%t/gnupg/{{ gnupg_runtime_dir_cmd.get('stdout', debug_gnupg_runtime_dir) }}/S.gpg-agent.extra
+ListenStream=%t/gnupg/{{ gnupg_runtime_dir_cmd.stdout }}/S.gpg-agent.extra
[Socket]
ListenStream=
-ListenStream=%t/gnupg/{{ gnupg_runtime_dir_cmd.get('stdout', debug_gnupg_runtime_dir) }}/S.gpg-agent.ssh
+ListenStream=%t/gnupg/{{ gnupg_runtime_dir_cmd.stdout }}/S.gpg-agent.ssh
[Socket]
ListenStream=
-ListenStream=%t/gnupg/{{ gnupg_runtime_dir_cmd.get('stdout', debug_gnupg_runtime_dir) }}/S.gpg-agent
+ListenStream=%t/gnupg/{{ gnupg_runtime_dir_cmd.stdout }}/S.gpg-agent
shell: 'GNUPGHOME=$XDG_CONFIG_HOME/gnupg gpgconf --list-dirs socketdir | sed -e "s@$XDG_RUNTIME_DIR/gnupg/@@"'
changed_when: false
register: gnupg_runtime_dir_cmd
+ check_mode: no
- name: Add pam_environment
register: pam_environment
template:
# SSH
SSH_AGENT_PID DEFAULT=
-SSH_AUTH_SOCK DEFAULT="${XDG_RUNTIME_DIR}/gnupg/{{ gnupg_runtime_dir_cmd.get('stdout', debug_gnupg_runtime_dir) }}/S.gpg-agent.ssh"
+SSH_AUTH_SOCK DEFAULT="${XDG_RUNTIME_DIR}/gnupg/{{ gnupg_runtime_dir_cmd.stdout }}/S.gpg-agent.ssh"
# Less
LESSHISTFILE DEFAULT="${XDG_STATE_HOME}/less/history"
systemd:
daemon_reload: true
scope: user
+- name: run PlugInstall
+ shell: vim -c PlugInstall -c qa
path: $XDG_STATE_HOME/psql
state: directory
- name: vim config file
- register: vim_result
copy:
src: vimrc
dest: $XDG_CONFIG_HOME/vim/vimrc
-- name: run PlugInstall
- shell: vim -c PlugInstall -c qa
- when: vim_result.changed
+ notify:
+ - run PlugInstall
- name: tmux config file
template:
src: tmux.conf.j2
gpg_useremail: "ismael@flony"
gpg_realname: "Ismaël Bouya"
gpg_user: "ismael"
- debug_gnupg_runtime_dir: "d.sa5ao9hmm8xbjif73e5hcsfs"
profile: "flony"
role:
flony: "fretlink"