summaryrefslogtreecommitdiff
path: root/roles/gnupg
diff options
context:
space:
mode:
Diffstat (limited to 'roles/gnupg')
-rw-r--r--roles/gnupg/tasks/main.yml14
1 files changed, 9 insertions, 5 deletions
diff --git a/roles/gnupg/tasks/main.yml b/roles/gnupg/tasks/main.yml
index 183dd7d..117ebf2 100644
--- a/roles/gnupg/tasks/main.yml
+++ b/roles/gnupg/tasks/main.yml
@@ -1,4 +1,13 @@
1--- 1---
2- name: Config dirs
3 file:
4 state: directory
5 path: "$XDG_CONFIG_HOME/{{ gnupg_config_item }}"
6 mode: 0700
7 loop:
8 - gnupg
9 loop_control:
10 loop_var: gnupg_config_item
2- name: Config files 11- name: Config files
3 copy: 12 copy:
4 src: "gnupg/{{ gnupg_config_item }}" 13 src: "gnupg/{{ gnupg_config_item }}"
@@ -8,11 +17,6 @@
8 - gpg.conf 17 - gpg.conf
9 loop_control: 18 loop_control:
10 loop_var: gnupg_config_item 19 loop_var: gnupg_config_item
11- name: Protect directory
12 file:
13 path: $XDG_CONFIG_HOME/gnupg
14 state: directory
15 mode: 0700
16- name: Get gnupg runtime folder name 20- name: Get gnupg runtime folder name
17 shell: 'gpgconf --list-dirs socketdir | sed -e "s@$XDG_RUNTIME_DIR/gnupg/@@"' 21 shell: 'gpgconf --list-dirs socketdir | sed -e "s@$XDG_RUNTIME_DIR/gnupg/@@"'
18 register: gnupg_runtime_dir_cmd 22 register: gnupg_runtime_dir_cmd