CHANGE: replaces explicit username with a variable
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user