1
0
mirror of https://gitlab.com/dbrw/ansible-setup.git synced 2025-08-04 15:35:41 +07:00
ansible-setup/roles/common/tasks/dotfiles.yml
2022-06-29 17:19:22 +07:00

10 lines
356 B
YAML

- name: Clone user dotfiles
git: repo={{ dotfiles.url }} dest=/home/{{ username }}/{{ dotfiles.destination }} accept_hostkey=yes update=no
become: yes
become_user: "{{ username }}"
- name: Install user dotfiles
command: rcup -d /home/{{ username}}/{{ dotfiles.destination}} {{ dotfiles.rcup_flags }}
become: yes
become_user: "{{ username }}"