1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_dotfiles.git synced 2024-08-16 16:09:49 +02:00
ansible_role_dotfiles/tasks/tmux.yml

24 lines
552 B
YAML
Raw Normal View History

2022-04-12 00:23:15 +02:00
---
- 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='
2023-10-31 00:34:06 +01:00
loop: "{{ accounts }}"
2022-04-12 00:23:15 +02:00
when:
- accounts is defined
- accounts != ['root']
- accounts != 'root'