Merge pull request #46 from charlieok/dont_override_gnupghome

Don't override GNUPGHOME
This commit is contained in:
Charlie O'Keefe 2019-02-13 22:07:28 -07:00 committed by GitHub
commit 46e76d0122
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 4 deletions

View File

@ -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