From dcb01ea4c05024fa69031efe336a91e7a47f4412 Mon Sep 17 00:00:00 2001 From: SebClem Date: Sun, 18 Jul 2021 16:55:57 +0200 Subject: [PATCH] :hammer: Add var to specify user path --- defaults/main.yml | 1 + tasks/main.yml | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) 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