diff options
| author | Ahmed AbdelHalim <[email protected]> | 2025-11-03 23:05:10 +0100 |
|---|---|---|
| committer | Ahmed AbdelHalim <[email protected]> | 2025-11-03 23:16:51 +0100 |
| commit | c755315a4645cea02b4498b3eceb2fb2e96ad00d (patch) | |
| tree | 5b016dc8609d6ecca09f2f609323cb5b02811c4a /roles/dotfiles/tasks | |
| parent | d5c97427499862c168414996763f7fc55438eb54 (diff) | |
Add dotfiles setup role w/testing
Diffstat (limited to 'roles/dotfiles/tasks')
| -rw-r--r-- | roles/dotfiles/tasks/main.yml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/roles/dotfiles/tasks/main.yml b/roles/dotfiles/tasks/main.yml new file mode 100644 index 00000000..51b2e817 --- /dev/null +++ b/roles/dotfiles/tasks/main.yml @@ -0,0 +1,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" |
