diff --git a/defaults/main.yml b/defaults/main.yml index 00a87c2..a861cbc 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -1,2 +1,3 @@ --- # defaults file for install_rc_file +rc_files_user_path: /root \ No newline at end of file diff --git a/tasks/main.yml b/tasks/main.yml index 56b4a0b..31eb76f 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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 \ No newline at end of file