CHANGE: splits update_configs role into app-based files

This commit is contained in:
2026-08-17 12:30:38 +04:00
parent 56796593c0
commit 6a7eb46d71
5 changed files with 59 additions and 31 deletions
+5 -31
View File
@@ -1,39 +1,13 @@
---
- name: Configure oh my zsh, by pushing the config file
ansible.builtin.copy:
src: "{{ role_path }}/files/.zshrc"
dest: /home/max/.zshrc
owner: max
group: max
mode: u=rw,g=r,o-rwx
ansible.builtin.include_tasks: omz.yaml
- name: Configure vim, by pushing the config
ansible.builtin.copy:
src: "{{ role_path }}/files/.vimrc"
dest: /home/max/.vimrc
owner: max
group: max
mode: u=rw,g=r,o-rwx
ansible.builtin.include_tasks: vim.yaml
- name: Configure ranger, by pushing the config
ansible.builtin.copy:
src: "{{ role_path }}/files/ranger_config/"
dest: /home/max/.config/ranger
owner: max
group: max
mode: u=rw,g=r,o-rwx
ansible.builtin.include_tasks: ranger.yaml
- name: Make sure ~/.config/ranger/scope.sh is executable
ansible.builtin.file:
path: /home/max/.config/ranger/scope.sh
owner: max
group: max
mode: u=rwx,g=rx,o-rwx
- name: Configure Neovim, by pushing the config
ansible.builtin.include_tasks: nvim.yaml
- name: Configure neovim, by pushing the config
ansible.builtin.copy:
src: "{{ role_path }}/files/nvim_config/"
dest: /home/max/.config/nvim
owner: max
group: max
mode: u=rw,g=r,o-rwx
+14
View File
@@ -0,0 +1,14 @@
---
- name: Clear old Neovim config
ansible.builtin.file:
state: absent
path: /home/max/.config/nvim
- name: Configure neovim, by pushing the config
ansible.builtin.copy:
src: "{{ role_path }}/files/nvim_config/"
dest: /home/max/.config/nvim
owner: max
group: max
mode: u=rw,g=r,o-rwx
+8
View File
@@ -0,0 +1,8 @@
---
- name: Configure oh my zsh, by pushing the config file
ansible.builtin.copy:
src: "{{ role_path }}/files/.zshrc"
dest: /home/max/.zshrc
owner: max
group: max
mode: u=rw,g=r,o-rwx
+22
View File
@@ -0,0 +1,22 @@
---
- name: Clear old config
ansible.builtin.file:
state: absent
path: /home/max/.config/ranger
- name: Configure ranger, by pushing the config
ansible.builtin.copy:
src: "{{ role_path }}/files/ranger_config/"
dest: /home/max/.config/ranger
owner: max
group: max
mode: u=rw,g=r,o-rwx
- name: Make sure ~/.config/ranger/scope.sh is executable
ansible.builtin.file:
path: /home/max/.config/ranger/scope.sh
owner: max
group: max
mode: u=rwx,g=rx,o-rwx
+10
View File
@@ -0,0 +1,10 @@
---
- name: Configure vim, by pushing the config
ansible.builtin.copy:
src: "{{ role_path }}/files/.vimrc"
dest: /home/max/.vimrc
owner: max
group: max
mode: u=rw,g=r,o-rwx