summaryrefslogtreecommitdiff
path: root/roles/init/tasks
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@fretlink.com>2018-11-02 17:03:49 +0100
committerIsmaël Bouya <ismael.bouya@fretlink.com>2018-11-02 17:03:49 +0100
commit397c4fed757d201af627636822981e85e84ea572 (patch)
treed6733d4022bf04784be84581f6c16e96a1b229e8 /roles/init/tasks
downloadAnsible-397c4fed757d201af627636822981e85e84ea572.tar.gz
Ansible-397c4fed757d201af627636822981e85e84ea572.tar.zst
Ansible-397c4fed757d201af627636822981e85e84ea572.zip
Validation initiale
Diffstat (limited to 'roles/init/tasks')
-rw-r--r--roles/init/tasks/main.yml24
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"