mirror of
https://github.com/roles-ansible/ansible_role_dotfiles.git
synced 2024-08-16 16:09:49 +02:00
24 lines
536 B
YAML
24 lines
536 B
YAML
|
---
|
||
|
- name: Copy vimrc configuration to root
|
||
|
become: true
|
||
|
ansible.builtin.copy:
|
||
|
src: 'templates/vimrc'
|
||
|
dest: '/root/.vimrc'
|
||
|
owner: root
|
||
|
group: root
|
||
|
mode: 'u=rw,g=r,o='
|
||
|
|
||
|
- name: Copy vimrc configuration to non admin users
|
||
|
become: true
|
||
|
ansible.builtin.copy:
|
||
|
src: 'templates/vimrc'
|
||
|
dest: '/home/{{ item }}/.vimrc'
|
||
|
owner: '{{ item }}'
|
||
|
group: '{{ item }}'
|
||
|
mode: 'u=rw,g=r,o='
|
||
|
with_items: "{{ accounts }}"
|
||
|
when:
|
||
|
- accounts is defined
|
||
|
- accounts != ['root']
|
||
|
- accounts != 'root'
|