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"
|
tmux_standardsession_name: "default"
|
||||||
### mgrote.dotfiles
|
### mgrote.dotfiles
|
||||||
dotfiles_local_repo_directory: "/home/mg/dotfiles-repo"
|
dotfiles_local_repo_directory: "/home/mg/dotfiles-repo"
|
||||||
dotfiles_user: "mg"
|
dotfiles_user: mg
|
||||||
dotfiles_link_target: "/home/mg"
|
dotfiles_link_target: "/home/mg"
|
||||||
dotfiles_remote_repo: "https://github.com/quotengrote/dotfiles"
|
dotfiles_remote_repo: "https://github.com/quotengrote/dotfiles"
|
||||||
dotfiles_files_to_copy:
|
dotfiles_files_to_copy:
|
||||||
|
|
|
@ -3,6 +3,11 @@
|
||||||
file:
|
file:
|
||||||
path: "{{ dotfiles_local_repo_directory }}"
|
path: "{{ dotfiles_local_repo_directory }}"
|
||||||
state: directory
|
state: directory
|
||||||
|
owner: "{{ dotfiles_user }}"
|
||||||
|
group: "{{ dotfiles_user }}"
|
||||||
|
recurse: yes
|
||||||
|
mode: 0644
|
||||||
|
|
||||||
# noqa [401]
|
# noqa [401]
|
||||||
- name: clone repository
|
- name: clone repository
|
||||||
become: true
|
become: true
|
||||||
|
@ -22,6 +27,8 @@
|
||||||
src: "{{ dotfiles_local_repo_directory }}/{{ item }}"
|
src: "{{ dotfiles_local_repo_directory }}/{{ item }}"
|
||||||
dest: "{{ dotfiles_link_target }}/{{ item }}"
|
dest: "{{ dotfiles_link_target }}/{{ item }}"
|
||||||
owner: "{{ dotfiles_user }}"
|
owner: "{{ dotfiles_user }}"
|
||||||
|
group: "{{ dotfiles_user }}"
|
||||||
|
mode: 0644
|
||||||
state: link
|
state: link
|
||||||
force: yes
|
force: yes
|
||||||
with_items: "{{ dotfiles_files_to_copy }}"
|
with_items: "{{ dotfiles_files_to_copy }}"
|
||||||
|
|
Loading…
Reference in a new issue