From f33d9a60f4ae62e12769f24cf0baa16dcf384c10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20K=C3=B6rber?= Date: Mon, 24 Feb 2020 10:42:31 +0100 Subject: [PATCH] Link ~/bin instead of copying --- user.yml | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/user.yml b/user.yml index c0a4772..90060fb 100644 --- a/user.yml +++ b/user.yml @@ -204,20 +204,16 @@ - ~/.var/run - ~/.usr/lib -- name: create bin directory +- name: link bin directory file: - state: directory - path: ~/bin - -- name: copy bin directory - synchronize: - src: bin/ - dest: ~/bin/ - archive: true - checksum: true - copy_links: false - delete: true - + state: link + force: true + follow: false + path: "/home/{{ user.name }}/bin" + src: /var/lib/dotfiles/bin + owner: "{{ user.name }}" + group: "{{ user_group_name }}" + mode: "{{ item.mode | default('0644') }}" - name: create intermediate directories for vim-plug file: