Make pinentry program a templated variable.
This commit is contained in:
parent
07f1b0a20f
commit
87570eba79
@ -1,7 +0,0 @@
|
|||||||
enable-ssh-support
|
|
||||||
write-env-file
|
|
||||||
use-standard-socket
|
|
||||||
default-cache-ttl 600
|
|
||||||
max-cache-ttl 7200
|
|
||||||
display :0
|
|
||||||
pinentry-program pinentry-qt5
|
|
@ -19,11 +19,20 @@
|
|||||||
loop:
|
loop:
|
||||||
- src: gpg.conf
|
- src: gpg.conf
|
||||||
dest: .gnupg/gpg.conf
|
dest: .gnupg/gpg.conf
|
||||||
- src: gpg-agent.conf
|
|
||||||
dest: .gnupg/gpg-agent.conf
|
|
||||||
- src: scdaemon.conf
|
- src: scdaemon.conf
|
||||||
dest: .gnupg/scdaemon.conf
|
dest: .gnupg/scdaemon.conf
|
||||||
|
|
||||||
|
- name: Copy templates
|
||||||
|
template:
|
||||||
|
src: "templates/{{ item.src }}.j2"
|
||||||
|
dest: "{{ account_homedir.stdout }}/{{ item.dest }}"
|
||||||
|
mode: 0600
|
||||||
|
owner: "{{ account_name.stdout }}"
|
||||||
|
group: "{{ group_name.stdout }}"
|
||||||
|
loop:
|
||||||
|
- src: gpg-agent.conf
|
||||||
|
dest: .gnupg/gpg-agent.conf
|
||||||
|
|
||||||
- name: Check trusted gpg keys
|
- name: Check trusted gpg keys
|
||||||
command: gpg --list-public-keys --keyid-format LONG
|
command: gpg --list-public-keys --keyid-format LONG
|
||||||
register: gpgkeys
|
register: gpgkeys
|
||||||
|
11
ansible/roles/gpg/templates/gpg-agent.conf.j2
Normal file
11
ansible/roles/gpg/templates/gpg-agent.conf.j2
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
enable-ssh-support
|
||||||
|
write-env-file
|
||||||
|
use-standard-socket
|
||||||
|
default-cache-ttl 600
|
||||||
|
max-cache-ttl 7200
|
||||||
|
display :0
|
||||||
|
{% if os_flavor == "linux" %}
|
||||||
|
pinentry-program /usr/bin/pinentry-qt5
|
||||||
|
{% elif os_flavor == "freebsd" %}
|
||||||
|
pinentry-program /usr/local/bin/pinentry-qt5
|
||||||
|
{% endif %}
|
Loading…
x
Reference in New Issue
Block a user