]> git.immae.eu Git - perso/Immae/Config/Ansible.git/blobdiff - roles/git/tasks/main.yml
Replace synchronize wiht copy
[perso/Immae/Config/Ansible.git] / roles / git / tasks / main.yml
index 440e1789cc0b459869f72b10d7b6340dd3515a09..e2a5bbf84ff7adfa9d6059eec00668e2813c6663 100644 (file)
@@ -1,11 +1,14 @@
 ---
 - name: Config files
-  synchronize:
-    recursive: yes
-    archive: no
-    checksum: yes
-    src: config_files/
-    dest: /$XDG_CONFIG_HOME/
+  copy:
+    mode: preserve
+    src: "config_files/{{ config_item }}"
+    dest: "$XDG_CONFIG_HOME/{{ config_item }}"
+  loop:
+    - tig/config
+    - git/templates_fretlink/hooks/pre-push
+  loop_control:
+    loop_var: config_item
 - name: git config file
   template:
     src: config.j2