ansible-workstation/roles/dotfiles/tasks/main.yaml
2024-11-22 10:45:41 -06:00

13 lines
398 B
YAML

---
- name: dotfiles | Set user shell
ansible.builtin.user:
name: "{{ dotfiles_user }}"
shell: "/usr/bin/{{ dotfiles_shell }}"
- name: dotfiles | Install from remote source
become: true
become_user: "{{ dotfiles_user }}"
ansible.builtin.shell:
cmd: "curl -o- -L {{ dotfiles_url }} | {{ dotfiles_shell }}"
creates: "/home/{{ dotfiles_user }}/.dotfiles"
register: dotfiles