]> git.immae.eu Git - perso/Immae/Config/Ansible.git/blobdiff - roles/tools/tasks/main.yml
Add a tag to prevent gpg-related actions during the home bootstrap
[perso/Immae/Config/Ansible.git] / roles / tools / tasks / main.yml
index 9c540d5f33df708418041cbfe00bdccfefe9fae1..82b575baf5adcc1463bc0b63f966eae25436fe64 100644 (file)
@@ -1,10 +1,25 @@
 ---
 - name: Import other tools
   include_role:
-    name: "{{ item }}"
+    name: "{{ tool_import_item }}"
   loop:
     - git
     - gnupg
+  loop_control:
+    loop_var: tool_import_item
+- 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 }}"
     dest: $XDG_CONFIG_HOME/systemd/user/
   notify:
     - reload systemd
+- name: monitor home service file
+  copy:
+    src: monitor_home.service
+    dest: "$XDG_CONFIG_HOME/systemd/user/"
+  notify:
+    - reload systemd
 - meta: flush_handlers
+- name: enable monitor home
+  systemd:
+    state: started
+    scope: user
+    name: monitor_home.service
+    enabled: true
 - name: Clone password store
+  tags: ["no_bootstrap"]
   git:
     dest: "$XDG_DATA_HOME/pass"
     repo: gitolite@git.immae.eu:perso/Immae/Prive/Password_store
     - [ "sinkType", "0" ]
     - [ "sourceType", "0" ]
     - [ "showVolumeMeters", "1" ]
+- name: ssh config dirs
+  file:
+    state: directory
+    path: "$HOME/.ssh"
 - name: ssh files
   copy:
     src: "ssh/{{ item }}"
   template:
     src: ssh_config.j2
     dest: $HOME/.ssh/config
+- name: bin dir
+  file:
+    state: directory
+    path: "$HOME/.local/bin"
+- name: add gio unwrapper
+  copy:
+    src: gio_unwrapper.sh
+    dest: $HOME/.local/bin/gio_unwrapper
+    mode: 0755