🔨 Add var to specify user path
This commit is contained in:
parent
c625d0478c
commit
dcb01ea4c0
@ -1,2 +1,3 @@
|
|||||||
---
|
---
|
||||||
# defaults file for install_rc_file
|
# defaults file for install_rc_file
|
||||||
|
rc_files_user_path: /root
|
@ -4,13 +4,13 @@
|
|||||||
- name: Install p10k
|
- name: Install p10k
|
||||||
ansible.builtin.git:
|
ansible.builtin.git:
|
||||||
repo: https://gitee.com/romkatv/powerlevel10k.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
|
depth: 1
|
||||||
|
|
||||||
- name: Install .zshrc
|
- name: Install .zshrc
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
src: .zshrc
|
src: .zshrc
|
||||||
dest: /root/.zshrc
|
dest: "{{ rc_files_user_path }}/.zshrc"
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: u=rw,g=r,o=r
|
mode: u=rw,g=r,o=r
|
||||||
@ -18,7 +18,7 @@
|
|||||||
- name: Install .p10k.zsh
|
- name: Install .p10k.zsh
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
src: .p10k.zsh
|
src: .p10k.zsh
|
||||||
dest: /root/.p10k.zsh
|
dest: "{{ rc_files_user_path }}/.p10k.zsh"
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: u=rw,g=r,o=r
|
mode: u=rw,g=r,o=r
|
||||||
@ -26,7 +26,7 @@
|
|||||||
- name: Install .vimrc
|
- name: Install .vimrc
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
src: .vimrc
|
src: .vimrc
|
||||||
dest: /root/.vimrc
|
dest: "{{ rc_files_user_path }}/.vimrc"
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: u=rw,g=r,o=r
|
mode: u=rw,g=r,o=r
|
Loading…
Reference in New Issue
Block a user