mirror of
https://github.com/roles-ansible/ansible_role_dotfiles.git
synced 2024-08-16 16:09:49 +02:00
30 lines
776 B
YAML
30 lines
776 B
YAML
---
|
|
- name: create .config/ranger/ directory
|
|
become: true
|
|
ansible.builtin.file:
|
|
path: "/home/{{ item }}/.config/ranger"
|
|
state: directory
|
|
owner: "{{ item }}"
|
|
group: "{{ item }}"
|
|
recurse: true
|
|
with_items: "{{ accounts }}"
|
|
when:
|
|
- dotfiles__ranger_hidden_files | bool
|
|
- accounts is defined
|
|
- accounts != ['root']
|
|
- accounts != 'root'
|
|
|
|
- name: create .config/ranger/rc.conf file
|
|
become: true
|
|
ansible.builtin.template:
|
|
src: templates/ranger_rc.conf.j2
|
|
dest: "/home/{{ item }}/.config/ranger/rc.conf"
|
|
owner: "{{ item }}"
|
|
group: "{{ item }}"
|
|
mode: '0644'
|
|
with_items: "{{ accounts }}"
|
|
when:
|
|
- dotfiles__ranger_hidden_files | bool
|
|
- accounts is defined
|
|
- accounts != ['root']
|
|
- accounts != 'root'
|