improved context system

This commit is contained in:
Alice
2024-10-08 20:39:22 +02:00
committed by Morten Olsen
parent c8549b6142
commit 134a64b30a
47 changed files with 264 additions and 338 deletions

View File

@@ -9,6 +9,7 @@
- name: Setup config dirctories
tags:
- nvim
- config
ansible.builtin.file:
mode: "{{ item.mode }}"
@@ -22,6 +23,7 @@
- name: Copy config {{ context }}
tags:
- nvim
- config
ansible.builtin.copy:
src: "{{ item.src }}"
@@ -39,12 +41,30 @@
- nvim
ansible.builtin.git:
repo: https://github.com/morten-olsen/nvim
dest: "{{ home }}/.config/nvim"
dest: "{{ home }}/Projects/private/nvim"
accept_newhostkey: true
clone: true
update: true
force: true
- name: Ensure dir
tags:
- config
- nvim
ansible.builtin.file:
path: "{{ home }}/.config"
state: directory
mode: "0755"
- name: Setup nvim link
tags:
- config
- nvim
ansible.builtin.file:
src: "{{ home }}/Projects/private/nvim"
dest: "{{ home }}/.config/nvim"
state: link
- name: Prepare neovim
tags:
- config