Add a tmux role for Debian, Arch, Fedora, and macOS
This commit is contained in:
parent
bd0e0d9b3e
commit
66444c69a6
@ -2,6 +2,7 @@
|
||||
- hosts: localhost
|
||||
roles:
|
||||
- zsh
|
||||
- tmux
|
||||
- neovim
|
||||
|
||||
- hosts: windows
|
||||
|
8
roles/tmux/tasks/Archlinux.yaml
Normal file
8
roles/tmux/tasks/Archlinux.yaml
Normal file
@ -0,0 +1,8 @@
|
||||
---
|
||||
- name: install pacman packages
|
||||
pacman:
|
||||
name:
|
||||
- tmux
|
||||
- xclip
|
||||
- urlscan
|
||||
state: latest
|
9
roles/tmux/tasks/Darwin.yaml
Normal file
9
roles/tmux/tasks/Darwin.yaml
Normal file
@ -0,0 +1,9 @@
|
||||
---
|
||||
- name: install homebrew packages
|
||||
homebrew:
|
||||
name:
|
||||
- tmux
|
||||
- osx-cpu-temp
|
||||
- reattach-to-user-namespace
|
||||
- urlview
|
||||
state: latest
|
12
roles/tmux/tasks/Debian.yaml
Normal file
12
roles/tmux/tasks/Debian.yaml
Normal file
@ -0,0 +1,12 @@
|
||||
---
|
||||
- name: install apt packages
|
||||
become: true
|
||||
package:
|
||||
name:
|
||||
- tmux
|
||||
- gawk
|
||||
- jq
|
||||
- sysstat
|
||||
- urlview
|
||||
- xclip
|
||||
state: latest
|
10
roles/tmux/tasks/Fedora.yaml
Normal file
10
roles/tmux/tasks/Fedora.yaml
Normal file
@ -0,0 +1,10 @@
|
||||
---
|
||||
- name: install dnf packages
|
||||
dnf:
|
||||
name:
|
||||
- tmux
|
||||
- xclip
|
||||
- urlscan
|
||||
- sysstat
|
||||
- jq
|
||||
state: latest
|
39
roles/tmux/tasks/main.yaml
Normal file
39
roles/tmux/tasks/main.yaml
Normal file
@ -0,0 +1,39 @@
|
||||
---
|
||||
- include_tasks: '{{ansible_os_family}}.yaml'
|
||||
|
||||
- name: clone config repo
|
||||
git:
|
||||
repo: git@code.infektor.net:config/tmux.git
|
||||
dest: ~/.config/tmux
|
||||
version: master
|
||||
|
||||
# TODO: - name: set repo email
|
||||
|
||||
- name: create layouts directory
|
||||
file:
|
||||
state: directory
|
||||
dest: ~/.local/share/tmux/layouts
|
||||
|
||||
- name: create symbolic links
|
||||
file:
|
||||
state: link
|
||||
src: '{{item.src}}'
|
||||
dest: '{{item.dest}}'
|
||||
with_items:
|
||||
- src: ~/.config/tmux/tmux.conf
|
||||
dest: ~/.tmux.conf
|
||||
- src: ~/.config/tmux/layouts/session-main
|
||||
dest: ~/.local/share/tmux/layouts/session-main
|
||||
- src: ~/.config/tmux/layouts/window-tall
|
||||
dest: ~/.local/share/tmux/layouts/window-tall
|
||||
- src: ~/.config/tmux/layouts/window-wide-left
|
||||
dest: ~/.local/share/tmux/layouts/window-wide-left
|
||||
- src: ~/.config/tmux/layouts/window-wide-right
|
||||
dest: ~/.local/share/tmux/layouts/window-wide-right
|
||||
|
||||
# TODO: - name: Enable tmux system-info service
|
||||
# command: system-info/install.sh
|
||||
|
||||
# TODO: WSL2 system-info
|
||||
# when: '"WSL" in ansible_kernel'
|
||||
# figure out best way to run daemon...
|
Loading…
x
Reference in New Issue
Block a user