Skip to content

Commit

Permalink
Better copy for dotfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
fspv committed Apr 11, 2024
1 parent 3af82e9 commit b2d6cab
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions roles/user/tasks/configs.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
- name: config rc files
copy:
synchronize:
src: home/
dest: "{{ item.home }}"
follow: no
local_follow: no
rsync_opts:
- "--exclude=.git"
- "--exclude=.gitmodules"
- "--exclude=.gitconfig"
- "--exclude=.gitignore"
- "--chown={{ item.user }}:{{ item.user }}"
- "--update" # skip files that are newer on the receiver
- "--times" # preserve modification times
with_items: "{{ users.values() | list }}"

- name: config user-dir
Expand Down

0 comments on commit b2d6cab

Please sign in to comment.