add task 'tmux'
This commit is contained in:
parent
312dab589c
commit
99708799ff
@ -4,8 +4,8 @@
|
|||||||
become: true
|
become: true
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
|
- role: tmux
|
||||||
|
|
||||||
- role: htop
|
- role: htop
|
||||||
|
|
||||||
- role: mumble
|
- role: mumble
|
||||||
tags:
|
|
||||||
- mumble
|
|
||||||
|
|||||||
15
urubian/roles/tmux/tasks/main.yml
Normal file
15
urubian/roles/tmux/tasks/main.yml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
---
|
||||||
|
- name: Install tmux
|
||||||
|
package:
|
||||||
|
name: tmux
|
||||||
|
state: present
|
||||||
|
- name: Start tmux in .bashrc
|
||||||
|
blockinfile:
|
||||||
|
path: "{{ lookup('env','HOME') }}/.bashrc"
|
||||||
|
marker: "# {mark} ANSIBLE MANAGED SECTION (tmux)"
|
||||||
|
block: |
|
||||||
|
if [[ -n "$PS1" ]] && [[ -z "$TMUX" ]] && [[ -n "$SSH_CONNECTION" ]]; then
|
||||||
|
tmux attach-session -t uruba || tmux new-session -s uruba
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user