summaryrefslogtreecommitdiffstats
path: root/roles/dotfiles/tasks/main.yml
blob: d962dbbe5c7b30a566f3fe0c31dc69733b7137d0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
---
- name: "Clone dotfiles git repo"
  ansible.builtin.git:
    repo: "{{ dotfiles_repo_url }}"
    dest: "{{ ansible_env.HOME }}/.rc"
    clone: true
    update: false
    single_branch: true
    version: "main"

- name: "Setup dotfiles"
  ansible.builtin.shell:
    cmd: "{{ dotfiles_setup_script }}"
    executable: "/bin/bash"
    creates: "{{ ansible_env.HOME }}/.bash_profile"