X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FConfig%2FAnsible.git;a=blobdiff_plain;f=roles%2Fgit%2Ftasks%2Fmain.yml;h=e2a5bbf84ff7adfa9d6059eec00668e2813c6663;hp=440e1789cc0b459869f72b10d7b6340dd3515a09;hb=eac82f289d503c5bcc0d1e04784d027745d371c6;hpb=ae3ee40122874b15242821249e101147f573b508 diff --git a/roles/git/tasks/main.yml b/roles/git/tasks/main.yml index 440e178..e2a5bbf 100644 --- a/roles/git/tasks/main.yml +++ b/roles/git/tasks/main.yml @@ -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