]> 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 9d23619fd5b8947eb8bd98770686015a4c1c5340..94324fc87a2dca44cde4ab67dced97a5e91dd6dd 100644 (file)
@@ -5,10 +5,32 @@
   loop:
     - git
     - gnupg
-- name: mplayer config file
+- 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: mplayer
-    dest: $XDG_CONFIG_HOME/mplayer/config
+    src: "{{ item }}"
+    dest: "$XDG_CONFIG_HOME/{{ 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
     - [ "LocationMode", "path-bar" ]
     - [ "SortOrder", "ascending" ]
     - [ "StartupMode", "recent" ]
-
+- name: pavucontrol configuration
+  ini_file:
+    path: "$XDG_CONFIG_HOME/pavucontrol.ini"
+    section: "window"
+    option: "{{ item.0 }}"
+    value: "{{ item.1 }}"
+    no_extra_spaces: true
+  loop:
+    - [ "sinkInputType", "0" ]
+    - [ "sourceOutputType", "0" ]
+    - [ "sinkType", "0" ]
+    - [ "sourceType", "0" ]
+    - [ "showVolumeMeters", "1" ]
+- name: ssh config dirs
+  file:
+    state: directory
+    path: "$HOME/.ssh"
+- name: ssh files
+  copy:
+    src: "ssh/{{ item }}"
+    dest: "$HOME/.ssh/{{ item }}"
+  loop:
+    - known_hosts
+    - rc
+- name: ssh configuration
+  template:
+    src: ssh_config.j2
+    dest: $HOME/.ssh/config