added task for setting symbolic links to dotfiles
This commit is contained in:
@@ -49,6 +49,19 @@
|
||||
- {repo: 'ssh://git@gitlab.social.my-wan.de:22422/rene/dotfiles.git', dir: 'dotfiles'}
|
||||
- {repo: 'https://github.com/romkatv/powerlevel10k.git', dir: 'powerlevel10k'}
|
||||
|
||||
- name: users | rene | link dotfiles
|
||||
become: yes
|
||||
become_user: rene
|
||||
file:
|
||||
state: link
|
||||
src: "/home/rene/dotfiles/{{ item.src }}"
|
||||
path: "home/rene/{{ item.dest }}"
|
||||
with_items:
|
||||
- { src: 'vim/vimrc', dest: '.vimrc' }
|
||||
- { src: 'bash/bashrc', dest: '.bashrc' }
|
||||
- { src: 'zsh/zshrc', dest: '.zshrc' }
|
||||
- { src: 'tmux/tmux.conf', dest: '.tmux.conf' }
|
||||
|
||||
########################################################
|
||||
# Learn Linux TV examples
|
||||
########################################################
|
||||
|
||||
@@ -55,6 +55,19 @@
|
||||
dest: "{{ root_home }}/bin"
|
||||
key_file: '/root/.ssh/gitlab_read_ed25519'
|
||||
|
||||
- name: users | root | link dotfiles
|
||||
become: yes
|
||||
become_user: root
|
||||
file:
|
||||
state: link
|
||||
src: "/home/root/dotfiles/{{ item.src }}"
|
||||
path: "home/root/{{ item.dest }}"
|
||||
with_items:
|
||||
- { src: 'vim/vimrc', dest: '.vimrc' }
|
||||
- { src: 'bash/bashrc', dest: '.bashrc' }
|
||||
- { src: 'zsh/zshrc', dest: '.zshrc' }
|
||||
- { src: 'tmux/tmux.conf', dest: '.tmux.conf' }
|
||||
|
||||
######################################################
|
||||
# Learn Linux TV example
|
||||
######################################################
|
||||
|
||||
Reference in New Issue
Block a user