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