🔨 Add var to specify user path

This commit is contained in:
SebClem 2021-07-18 16:55:57 +02:00
parent c625d0478c
commit dcb01ea4c0
2 changed files with 5 additions and 4 deletions

View File

@ -1,2 +1,3 @@
---
# defaults file for install_rc_file
rc_files_user_path: /root

View File

@ -4,13 +4,13 @@
- name: Install p10k
ansible.builtin.git:
repo: https://gitee.com/romkatv/powerlevel10k.git
dest: /root/.oh-my-zsh/custom/themes/powerlevel10k
dest: "{{ rc_files_user_path }}/.oh-my-zsh/custom/themes/powerlevel10k"
depth: 1
- name: Install .zshrc
ansible.builtin.copy:
src: .zshrc
dest: /root/.zshrc
dest: "{{ rc_files_user_path }}/.zshrc"
owner: root
group: root
mode: u=rw,g=r,o=r
@ -18,7 +18,7 @@
- name: Install .p10k.zsh
ansible.builtin.copy:
src: .p10k.zsh
dest: /root/.p10k.zsh
dest: "{{ rc_files_user_path }}/.p10k.zsh"
owner: root
group: root
mode: u=rw,g=r,o=r
@ -26,7 +26,7 @@
- name: Install .vimrc
ansible.builtin.copy:
src: .vimrc
dest: /root/.vimrc
dest: "{{ rc_files_user_path }}/.vimrc"
owner: root
group: root
mode: u=rw,g=r,o=r