mirror of
https://github.com/roles-ansible/ansible_role_dotfiles.git
synced 2024-08-16 16:09:49 +02:00
23 lines
552 B
YAML
23 lines
552 B
YAML
---
|
|
- name: Copy vimrc configuration to root
|
|
become: true
|
|
ansible.builtin.copy:
|
|
src: 'templates/tmux.conf.j2'
|
|
dest: '/root/.tmux.conf'
|
|
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/tmux.conf.j2'
|
|
dest: '/home/{{ item }}/.tmux.conf'
|
|
owner: '{{ item }}'
|
|
group: '{{ item }}'
|
|
mode: 'u=rw,g=r,o='
|
|
loop: "{{ accounts }}"
|
|
when:
|
|
- accounts is defined
|
|
- accounts != ['root']
|
|
- accounts != 'root'
|