added task for setting symbolic links to dotfiles

This commit is contained in:
2022-02-20 14:53:45 +01:00
parent 88c68d844f
commit 1972e75382
2 changed files with 26 additions and 0 deletions

View File

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