]> git.immae.eu Git - perso/Immae/Config/Ansible.git/commitdiff
Add dir creation
authorIsmaël Bouya <ismael.bouya@fretlink.com>
Sun, 11 Nov 2018 20:35:01 +0000 (21:35 +0100)
committerIsmaël Bouya <ismael.bouya@fretlink.com>
Sun, 11 Nov 2018 20:35:01 +0000 (21:35 +0100)
roles/contexts/fretlink/tasks/main.yml
roles/git/tasks/main.yml
roles/gnupg/tasks/main.yml
roles/graphical/tasks/main.yml
roles/lxde/tasks/main.yml
roles/programming/haskell/tasks/main.yml
roles/programming/nodejs/tasks/main.yml
roles/programming/python/tasks/main.yml
roles/tools/tasks/main.yml
site.yml

index 78f733a43cc12805047cca1f6f6721561af09c6a..085da83a30899cfc11ebeb8ad9455883e03e1f6b 100644 (file)
@@ -6,12 +6,20 @@
     - programming/python
     - programming/haskell
     - programming/nodejs
+- name: Config dirs
+  file:
+    state: directory
+    path: "$XDG_CONFIG_HOME/{{ item }}"
+  loop:
+    - autostart
+    - Zeal
+    - pm2
 - name: Config files
   copy:
     src: "config_files/{{ item }}"
     dest: "$XDG_CONFIG_HOME/{{ item }}"
   loop:
-    - "autostart/zeal.desktop"
+    - autostart/zeal.desktop
 - name: zeal configuration
   ini_file:
     path: "$XDG_CONFIG_HOME/Zeal/Zeal.conf"
       args:
         creates: "$XDG_DATA_HOME/Zeal/Zeal/docsets/{{ item }}.docset"
       loop: "{{ zeal_missing_docsets.stdout.split('\n') }}"
-- name: Create pm2 config dir
-  file:
-    path: $XDG_CONFIG_HOME/pm2
-    state: directory
 - name: workdir
   block:
+    - name: Workdir
+      file:
+        state: directory
+        path: $HOME/workdir
     - name: workdir scripts
       copy:
         mode: 0755
index e2a5bbf84ff7adfa9d6059eec00668e2813c6663..853ecb28300e20c106ba6b7c88cd97b1e56da680 100644 (file)
@@ -1,4 +1,11 @@
 ---
+- name: Config dirs
+  file:
+    state: directory
+    path: "$XDG_CONFIG_HOME/{{ item }}"
+  loop:
+    - tig
+    - git/templates_fretlink/hooks
 - name: Config files
   copy:
     mode: preserve
index 183dd7dd243d5b406c047fb1fed1df43be9fb6f1..117ebf208b5f8366c38589f1500cdf11b914c492 100644 (file)
@@ -1,4 +1,13 @@
 ---
+- name: Config dirs
+  file:
+    state: directory
+    path: "$XDG_CONFIG_HOME/{{ gnupg_config_item }}"
+    mode: 0700
+  loop:
+    - gnupg
+  loop_control:
+    loop_var: gnupg_config_item
 - name: Config files
   copy:
     src: "gnupg/{{ gnupg_config_item }}"
@@ -8,11 +17,6 @@
     - gpg.conf
   loop_control:
     loop_var: gnupg_config_item
-- name: Protect directory
-  file:
-    path: $XDG_CONFIG_HOME/gnupg
-    state: directory
-    mode: 0700
 - name: Get gnupg runtime folder name
   shell: 'gpgconf --list-dirs socketdir | sed -e "s@$XDG_RUNTIME_DIR/gnupg/@@"'
   register: gnupg_runtime_dir_cmd
index ad4502451d9560eb377bf961742c452879e9fd60..f73623e92160de45c30ffb29753045a58e4afae6 100644 (file)
@@ -1,4 +1,11 @@
 ---
+- name: Config dirs
+  file:
+    state: directory
+    path: "$XDG_CONFIG_HOME/{{ item }}"
+  loop:
+    - autostart
+    - dunst
 - name: Config files
   copy:
     src: "config_files/{{ item }}"
index 8bf27af76c367f123d04e5c43b60ccdda2ed8128..e7de7595bc338c3c9965407112cf459a35132f94 100644 (file)
@@ -2,6 +2,19 @@
 - 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
index fe37787f5ebef51b39068db2b42134977e1cc978..a3ed2a058de5202fb529ac78025d6c1156d44346 100644 (file)
@@ -1,4 +1,11 @@
 ---
+- name: Config dirs
+  file:
+    state: directory
+    path: "{{ item }}"
+  loop:
+    - "$HOME/.ghc"
+    - "$XDG_DATA_HOME/stack/global-project"
 - name: GHC config file
   copy:
     src: ghci.conf
index fcf74212f2db6a623618b0bf1a21f77ffcc63c82..eef4d2fd339146dc711a16755919f5c49aacf39f 100644 (file)
@@ -1,4 +1,10 @@
 ---
+- name: Config dirs
+  file:
+    state: directory
+    path: "$XDG_CONFIG_HOME/{{ item }}"
+  loop:
+    - npm
 - name: config file
   copy:
     src: npmrc
index db6758454393b70a6e6163556dab05e5a8e6cc5b..e3a840b31e8036cb630b096e0409254bf1edf4f2 100644 (file)
@@ -1,4 +1,10 @@
 ---
+- name: Config dirs
+  file:
+    state: directory
+    path: "$XDG_CONFIG_HOME/{{ item }}"
+  loop:
+    - python
 - name: Config file
   copy:
     src: startup_script.py
index 9c540d5f33df708418041cbfe00bdccfefe9fae1..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 }}"
     - [ "sinkType", "0" ]
     - [ "sourceType", "0" ]
     - [ "showVolumeMeters", "1" ]
+- name: ssh config dirs
+  file:
+    state: directory
+    path: "$HOME/.ssh"
 - name: ssh files
   copy:
     src: "ssh/{{ item }}"
index 28a64edf931d2147160aee990f9705df8051eb92..c022b973b41666d705d7fcfb69ba1d6a534deda9 100644 (file)
--- a/site.yml
+++ b/site.yml
@@ -20,7 +20,6 @@
     - shell/bash
     - lxde
     - tools
-    - gnupg
     - cron
     - role: contexts/fretlink
       tags: ["fretlink"]