added dotfiles role

This commit is contained in:
2026-06-20 05:51:04 -05:00
parent af197aba57
commit c6b33e4182
2 changed files with 34 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
---
galaxy_info:
author: cjr
description: Clone dotfiles and nvim config repos and symlink into place
license: BSD-3-Clause
min_ansible_version: "2.1"
+28
View File
@@ -0,0 +1,28 @@
---
- name: Clone dot files repo
ansible.builtin.git:
repo: https://gitea.learningunix.net/cjr/dotfiles.git
dest: "{{ ansible_user_home }}/dotfiles"
update: true
version: main
- name: Clone the nvim repo
ansible.builtin.git:
repo: https://gitea.learningunix.net/cjr/vim.git
dest: "{{ ansible_user_home }}/nvim"
update: true
version: main
- name: Symlink .zshrc
ansible.builtin.file:
src: "{{ ansible_user_home }}/dotfiles/zsh/.zshrc"
dest: "{{ ansible_user_home }}/.zshrc"
state: link
force: true
- name: Symlink nvim config
ansible.builtin.file:
src: "{{ ansible_user_home }}/nvim"
dest: "{{ ansible_user_home }}/.config/nvim"
state: link
force: true