]> git.immae.eu Git - perso/Immae/Config/Ansible.git/blobdiff - roles/tools/tasks/main.yml
Add dir creation
[perso/Immae/Config/Ansible.git] / roles / tools / tasks / main.yml
index 3fa7d35ffa58eda6049e9cbcd85ad28cc3340f81..94324fc87a2dca44cde4ab67dced97a5e91dd6dd 100644 (file)
@@ -5,6 +5,19 @@
   loop:
     - git
     - gnupg
+- name: Config dirs
+  file:
+    state: directory
+    path: "$XDG_CONFIG_HOME/{{ item }}"
+  loop:
+    - htop
+    - mplayer
+    - psql
+    - vim
+    - tmux
+    - youtube-viewer
+    - remind
+    - systemd/user
 - name: config files
   copy:
     src: "{{ item }}"
   loop:
     - htop/htoprc
     - mplayer/config
+- name: template config files
+  template:
+    src: "{{ item }}.j2"
+    dest: "$XDG_CONFIG_HOME/{{ item }}"
+  loop:
+    - wgetrc
 - name: postgresql
   block:
     - name: psql config file
     - [ "sinkType", "0" ]
     - [ "sourceType", "0" ]
     - [ "showVolumeMeters", "1" ]
+- name: ssh config dirs
+  file:
+    state: directory
+    path: "$HOME/.ssh"
 - name: ssh files
   copy:
     src: "ssh/{{ item }}"