update urubamba role (basic packages)

This commit is contained in:
2023-08-11 21:30:56 +02:00
parent 8d8f209d2f
commit 39c2b425bd
8 changed files with 77 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
---
- name: Install tmux
ansible.builtin.package:
name: tmux
state: present
- name: Start tmux in .bashrc
ansible.builtin.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