CHANGE: replaces explicit username with a variable

This commit is contained in:
2026-08-17 13:31:59 +04:00
parent df390365fc
commit 1c58800a21
6 changed files with 33 additions and 32 deletions
+4 -4
View File
@@ -3,12 +3,12 @@
- name: Clear old Neovim config
ansible.builtin.file:
state: absent
path: /home/max/.config/nvim
path: "/home/{{ human_admin_user }}/.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
dest: "/home/{{ human_admin_user }}/.config/nvim"
owner: "{{ human_admin_user }}"
group: "{{ human_admin_user }}"
mode: u=rw,g=r,o-rwx
+3 -3
View File
@@ -2,7 +2,7 @@
- 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
dest: "/home/{{ human_admin_user }}/.zshrc"
owner: "{{ human_admin_user }}"
group: "{{ human_admin_user }}"
mode: u=rw,g=r,o-rwx
+7 -7
View File
@@ -3,20 +3,20 @@
- name: Clear old config
ansible.builtin.file:
state: absent
path: /home/max/.config/ranger
path: "/home/{{ human_admin_user }}/.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
dest: "/home/{{ human_admin_user }}/.config/ranger"
owner: "{{ human_admin_user }}"
group: "{{ human_admin_user }}"
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
path: "/home/{{ human_admin_user }}/.config/ranger/scope.sh"
owner: "{{ human_admin_user }}"
group: "{{ human_admin_user }}"
mode: u=rwx,g=rx,o-rwx
+3 -3
View File
@@ -3,8 +3,8 @@
- name: Configure vim, by pushing the config
ansible.builtin.copy:
src: "{{ role_path }}/files/.vimrc"
dest: /home/max/.vimrc
owner: max
group: max
dest: "/home/{{ human_admin_user }}/.vimrc"
owner: "{{ human_admin_user }}"
group: "{{ human_admin_user }}"
mode: u=rw,g=r,o-rwx