Make small revisions to gpg role

This commit is contained in:
ionutboangiu
2023-07-05 07:34:35 -04:00
committed by Dan Christian Bogos
parent 915b2fa5d7
commit b6842a79ad
2 changed files with 4 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
---
- name: set default gpg options
become: yes
template:
src: gpg.conf.j2
dest: "{{ gpg_home }}/.gnupg/gpg.conf"
@@ -7,6 +8,7 @@
owner: root
- name: copy default template for gpg
become: yes
template:
src: gen-key-script.j2
dest: "{{ gpg_home }}/gen-key-script"
@@ -14,6 +16,7 @@
owner: root
- name: generate gpg keys
become: yes
command: gpg --batch --gen-key gen-key-script
args:
chdir: "{{ gpg_home }}"

View File

@@ -6,7 +6,7 @@ Subkey-Length: {{ gpg_subkeylength }}
Name-Real: {{ gpg_realname }}
Name-Email: {{ gpg_useremail }}
Expire-Date: {{ gpg_expire }}
Passphrase:
%no-ask-passphrase
%pubring {{ gpg_home }}/.gnupg/pubring.kbx
%secring {{ gpg_home }}/.gnupg/private-keys-v1.d
%commit