diff options
Diffstat (limited to 'roles/init/tasks/main.yml')
-rw-r--r-- | roles/init/tasks/main.yml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/roles/init/tasks/main.yml b/roles/init/tasks/main.yml new file mode 100644 index 0000000..d3f0f6b --- /dev/null +++ b/roles/init/tasks/main.yml | |||
@@ -0,0 +1,24 @@ | |||
1 | --- | ||
2 | - name: Get gnupg runtime folder name | ||
3 | shell: 'GNUPGHOME=$XDG_CONFIG_HOME/gnupg gpgconf --list-dirs socketdir | sed -e "s@$XDG_RUNTIME_DIR/gnupg/@@"' | ||
4 | register: gnupg_runtime_dir_cmd | ||
5 | - name: Add pam_environment | ||
6 | register: pam_environment | ||
7 | template: | ||
8 | src: pam_environment.j2 | ||
9 | dest: $XDG_CONFIG_HOME/pam_environment | ||
10 | - name: Signal the change | ||
11 | when: pam_environment.changed | ||
12 | debug: | ||
13 | msg: "\u26A0\uFE0F \u26A0\uFE0F You need to log out and back in to update your environment \u26A0\uFE0F \u26A0\uFE0F" | ||
14 | - name: Create XDG dirs | ||
15 | file: | ||
16 | path: "{{ item }}" | ||
17 | state: directory | ||
18 | loop: | ||
19 | - "$XDG_CONFIG_HOME" | ||
20 | - "$XDG_STATE_HOME" | ||
21 | - "$XDG_DATA_HOME" | ||
22 | - "$XDG_CACHE_HOME" | ||
23 | - "$HOME/Desktop" | ||
24 | - "$HOME/Downloads" | ||