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.
29 lines
767 B
YAML
29 lines
767 B
YAML
---
|
|
- name: Clone dot files repo
|
|
ansible.builtin.git:
|
|
repo: git@gitea.learningunix.net:cjr/dotfiles.git
|
|
dest: "{{ ansible_facts['user_dir'] }}/dotfiles"
|
|
update: true
|
|
version: main
|
|
|
|
- name: Clone the nvim repo
|
|
ansible.builtin.git:
|
|
repo: git@gitea.learningunix.net:cjr/vim.git
|
|
dest: "{{ ansible_facts['user_dir'] }}/nvim"
|
|
update: true
|
|
version: main
|
|
|
|
- name: Symlink .zshrc
|
|
ansible.builtin.file:
|
|
src: "{{ ansible_facts['user_dir'] }}/dotfiles/zsh/.zshrc"
|
|
dest: "{{ ansible_facts['user_dir'] }}/.zshrc"
|
|
state: link
|
|
force: true
|
|
|
|
- name: Symlink nvim config
|
|
ansible.builtin.file:
|
|
src: "{{ ansible_facts['user_dir'] }}/nvim"
|
|
dest: "{{ ansible_facts['user_dir'] }}/.config/nvim"
|
|
state: link
|
|
force: true
|