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
+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