Merge pull request #46 from charlieok/dont_override_gnupghome
Don't override GNUPGHOME
This commit is contained in:
commit
46e76d0122
|
@ -4,16 +4,12 @@
|
|||
become: no
|
||||
ignore_errors: true
|
||||
register: gpg_list_keys_result
|
||||
environment:
|
||||
GNUPGHOME: "{{ lookup('env', 'HOME') }}/.gnupg"
|
||||
|
||||
- name: Export the GPG private key from the local keyring.
|
||||
local_action: "command gpg2 --armor --export-secret-key {{ gpg_key_id }}"
|
||||
become: no
|
||||
register: gpg_private_key
|
||||
changed_when: false
|
||||
environment:
|
||||
GNUPGHOME: "{{ lookup('env', 'HOME') }}/.gnupg"
|
||||
when: gpg_list_keys_result.stdout != ''
|
||||
no_log: True
|
||||
|
||||
|
|
Loading…
Reference in New Issue