34 lines
665 B
YAML
34 lines
665 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: Copy tmux config
|
|
copy:
|
|
src: tmux.conf
|
|
dest: ~/.tmux.conf
|
|
mode: 0644
|
|
|
|
- name: Create tmux plugin directory
|
|
file: path={{ item }} state=directory mode=0755
|
|
with_items:
|
|
- ~/.tmux
|
|
- ~/.tmux/plugins
|
|
|
|
- name: Clone tmux plugin manager
|
|
git:
|
|
repo: https://github.com/tmux-plugins/tpm
|
|
dest: ~/.tmux/plugins/tpm
|
|
clone: true
|
|
update: false
|
|
version: master
|