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
2022-04-12 12:38:41 +02:00

23 lines
558 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='
with_items: "{{ accounts }}"
when:
- accounts is defined
- accounts != ['root']
- accounts != 'root'