26 lines
563 B
YAML
26 lines
563 B
YAML
---
|
|
- name: Install tmux (Archlinux)
|
|
become: true
|
|
pacman:
|
|
name:
|
|
- tmux
|
|
when: ansible_facts['distribution'] == 'Archlinux'
|
|
|
|
- name: Install tmux (Debian)
|
|
become: true
|
|
apt:
|
|
name:
|
|
- tmux
|
|
when: ansible_facts['distribution'] == 'Debian'
|
|
|
|
- name: Create tmux directory
|
|
file:
|
|
path: ~/.tmux
|
|
state: directory
|
|
mode: 0755
|
|
|
|
- name: Copy tmux configs
|
|
copy: src={{ item.src }} dest={{ item.dest }} mode=0644
|
|
with_items:
|
|
- {src: 'tmux.conf', dest: '~/.tmux.conf'}
|
|
- {src: 'sessions.conf', dest: '~/.tmux/sessions.conf'}
|