Bugfix: dotfiles gehören jetzt dem Nutzer und nciht mehr root (#53)

This commit is contained in:
Quotengrote 2020-10-19 10:10:50 +02:00 committed by GitHub
parent 724427bb85
commit 9ca373f9bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View file

@ -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:

View file

@ -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 }}"