Changed naming scheme for GPG keys, specified conditional case for GPG key acquisition/creation method
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
---
|
||||
- name: Acquire GPG private keys from other system
|
||||
when: not files_mode
|
||||
delegate_to: "{{ gpg_private_keys_origin_host }}"
|
||||
ansible.builtin.command:
|
||||
argv:
|
||||
@@ -12,7 +13,7 @@
|
||||
- name: Create GPG private keys
|
||||
ansible.builtin.copy:
|
||||
content: "{{ item }}"
|
||||
dest: "{{ ansible_facts['user_dir'] }}/.gnupg/{{ ansible_facts['user_dir'] }}-{{ idx }}.priv.asc"
|
||||
dest: "{{ ansible_facts['user_dir'] }}/.gnupg/{{ ansible_facts['user_id'] }}-{{ idx }}.priv.asc"
|
||||
force: yes
|
||||
backup: yes
|
||||
mode: "0600"
|
||||
|
||||
Reference in New Issue
Block a user