]> git.immae.eu Git - perso/Immae/Config/Ansible.git/blobdiff - roles/lxde/tasks/main.yml
Add backgrounds folder to git
[perso/Immae/Config/Ansible.git] / roles / lxde / tasks / main.yml
index 8bf27af76c367f123d04e5c43b60ccdda2ed8128..62ee7ed0bbd20e011317f0055f70a5018da6b333 100644 (file)
@@ -2,11 +2,24 @@
 - name: Import graphical
   include_role:
     name: graphical
+- name: Config dirs
+  file:
+    state: directory
+    path: "$XDG_CONFIG_HOME/{{ item }}"
+  loop:
+    - libfm
+    - pcmanfm/LXDE
+    - lxterminal
+    - openbox
+    - lxpanel/LXDE/panels
+    - lxsession-default-apps
+    - lxsession/LXDE
+    - gpicview
 - name: Config files
   copy:
     mode: preserve
-    src: "config_files/{{ lxde_config_item }}"
-    dest: "$XDG_CONFIG_HOME/{{ lxde_config_item }}"
+    src: "config_files/{{ item }}"
+    dest: "$XDG_CONFIG_HOME/{{ item }}"
   loop:
     - libfm/libfm.conf
     - pcmanfm/LXDE/pcmanfm.conf
@@ -20,8 +33,6 @@
     - lxsession/LXDE/desktop.conf
     - gpicview/gpicview.conf
     - xinitrc
-  loop_control:
-    loop_var: lxde_config_item
 - name: pcmanfm destkop configuration
   ini_file:
     path: "$XDG_CONFIG_HOME/pcmanfm/LXDE/desktop-items-0.conf"
@@ -42,7 +53,6 @@
     - [ "show_documents", "0" ]
     - [ "show_trash", "1" ]
     - [ "show_mounts", "0" ]
-
 - name: lxmusic configuration
   ini_file:
     path: "$XDG_CONFIG_HOME/lxmusic/config"
@@ -56,3 +66,8 @@
     - [ "play_after_exit", 0 ]
     - [ "show_playlist", 1 ]
     - [ "filter", 0 ]
+- name: Background repository
+  tags: ["no_bootstrap"]
+  git:
+    dest: "$XDG_DATA_HOME/backgrounds"
+    repo: gitolite@git.immae.eu:perso/Immae/Config/Ansible/Backgrounds