f1dd4fb3c0
Replace deprecated ansible_user_dir/ansible_user_id with ansible_facts['user_dir'/'user_id'] across all roles. Switch git repo URLs from HTTPS to SSH. Split site.yml into two plays so user-facing roles (dotfiles, scripts, hotkeys) run without become.
14 lines
408 B
YAML
14 lines
408 B
YAML
---
|
|
- name: Clone the scripts repo
|
|
ansible.builtin.git:
|
|
repo: git@gitea.learningunix.net:cjr/scripts.git
|
|
dest: "{{ ansible_facts['user_dir'] }}/scripts"
|
|
update: true
|
|
version: main
|
|
|
|
- name: Ensure that scripts is in the user's path
|
|
ansible.builtin.lineinfile:
|
|
path: "{{ ansible_facts['user_dir'] }}/dotfiles/zsh/.zshrc"
|
|
line: 'export PATH="$HOME/scripts:$PATH"'
|
|
state: present
|