dotfiles/roles/tmux/tasks/main.yml

22 lines
490 B
YAML

---
- name: Install tmux (Debian)
when: ansible_os_family == "Debian"
become: yes
apt: name=tmux state=latest update_cache=yes
- name: Install tmux (macOS)
when: ansible_os_family == "Darwin"
homebrew: name=tmux state=latest
- name: Create the tmux config directory
file:
path: ~/.config/tmux
state: directory
- name: Deploy tmux config
file:
src: "{{ role_path }}/files/tmux.conf"
dest: ~/.config/tmux/tmux.conf
state: link
force: yes