Bugfix: dotfiles gehören jetzt dem Nutzer und nciht mehr root (#53)
This commit is contained in:
parent
724427bb85
commit
9ca373f9bb
2 changed files with 8 additions and 1 deletions
|
@ -28,7 +28,7 @@
|
|||
tmux_standardsession_name: "default"
|
||||
### mgrote.dotfiles
|
||||
dotfiles_local_repo_directory: "/home/mg/dotfiles-repo"
|
||||
dotfiles_user: "mg"
|
||||
dotfiles_user: mg
|
||||
dotfiles_link_target: "/home/mg"
|
||||
dotfiles_remote_repo: "https://github.com/quotengrote/dotfiles"
|
||||
dotfiles_files_to_copy:
|
||||
|
|
|
@ -3,6 +3,11 @@
|
|||
file:
|
||||
path: "{{ dotfiles_local_repo_directory }}"
|
||||
state: directory
|
||||
owner: "{{ dotfiles_user }}"
|
||||
group: "{{ dotfiles_user }}"
|
||||
recurse: yes
|
||||
mode: 0644
|
||||
|
||||
# noqa [401]
|
||||
- name: clone repository
|
||||
become: true
|
||||
|
@ -22,6 +27,8 @@
|
|||
src: "{{ dotfiles_local_repo_directory }}/{{ item }}"
|
||||
dest: "{{ dotfiles_link_target }}/{{ item }}"
|
||||
owner: "{{ dotfiles_user }}"
|
||||
group: "{{ dotfiles_user }}"
|
||||
mode: 0644
|
||||
state: link
|
||||
force: yes
|
||||
with_items: "{{ dotfiles_files_to_copy }}"
|
||||
|
|
Loading…
Reference in a new issue