Add a tmux role for Debian, Arch, Fedora, and macOS
This commit is contained in:
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...
|
||||
Reference in New Issue
Block a user