40 lines
1.1 KiB
YAML
40 lines
1.1 KiB
YAML
---
|
|
- 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...
|