spark/roles/dotfiles/tasks/main.yml
2024-12-01 20:21:53 -08:00

25 lines
587 B
YAML

---
- name: Install rcm
kewlfft.aur.aur:
name: rcm
become: yes
become_user: "{{ aur.user }}"
when: dotfiles is defined
tags:
- aur
- name: Clone user dotfiles
git:
repo: "{{ dotfiles.url }}"
dest: /home/{{ user.name }}/{{ dotfiles.destination }}
accept_hostkey: yes
update: no
when: dotfiles is defined
become: yes
become_user: "{{ user.name }}"
- name: Install user dotfiles
command: rcup -d /home/{{ user.name}}/{{ dotfiles.destination}} {{ dotfiles.rcup_flags }}
when: dotfiles is defined
become: yes
become_user: "{{ user.name }}"