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
|
- name: Acquire GPG private keys from other system
|
||||||
|
when: not files_mode
|
||||||
delegate_to: "{{ gpg_private_keys_origin_host }}"
|
delegate_to: "{{ gpg_private_keys_origin_host }}"
|
||||||
ansible.builtin.command:
|
ansible.builtin.command:
|
||||||
argv:
|
argv:
|
||||||
@@ -12,7 +13,7 @@
|
|||||||
- name: Create GPG private keys
|
- name: Create GPG private keys
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
content: "{{ item }}"
|
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
|
force: yes
|
||||||
backup: yes
|
backup: yes
|
||||||
mode: "0600"
|
mode: "0600"
|
||||||
|
|||||||
Reference in New Issue
Block a user