fixed ansible user home dir error

This commit is contained in:
2026-06-20 06:21:17 -05:00
parent e5a0e961d5
commit 6eea3b213c
5 changed files with 14 additions and 14 deletions
+2 -2
View File
@@ -2,12 +2,12 @@
- name: Clone the scripts repo
ansible.builtin.git:
repo: https://gitea.learningunix.net/cjr/scripts
dest: "{{ ansible_user_home }}/scripts"
dest: "{{ ansible_user_dir }}/scripts"
update: true
version: main
- name: Ensure that scripts is in the user's path
ansible.builtin.lineinfile:
path: "{{ ansible_user_home }}/dotfiles/zsh/.zshrc"
path: "{{ ansible_user_dir }}/dotfiles/zsh/.zshrc"
line: 'export PATH="$HOME/scripts:$PATH"'
state: present