blob: d3f0f6b0bf4c8271fdfed1dae745f36f09a301f6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
---
- name: Get gnupg runtime folder name
shell: 'GNUPGHOME=$XDG_CONFIG_HOME/gnupg gpgconf --list-dirs socketdir | sed -e "s@$XDG_RUNTIME_DIR/gnupg/@@"'
register: gnupg_runtime_dir_cmd
- name: Add pam_environment
register: pam_environment
template:
src: pam_environment.j2
dest: $XDG_CONFIG_HOME/pam_environment
- name: Signal the change
when: pam_environment.changed
debug:
msg: "\u26A0\uFE0F \u26A0\uFE0F You need to log out and back in to update your environment \u26A0\uFE0F \u26A0\uFE0F"
- name: Create XDG dirs
file:
path: "{{ item }}"
state: directory
loop:
- "$XDG_CONFIG_HOME"
- "$XDG_STATE_HOME"
- "$XDG_DATA_HOME"
- "$XDG_CACHE_HOME"
- "$HOME/Desktop"
- "$HOME/Downloads"
|