Fix tmux config being added multiple times
This commit is contained in:
parent
64370f6c0a
commit
c46d214037
@ -11,10 +11,10 @@
|
|||||||
owner: "{{ ansible_user }}"
|
owner: "{{ ansible_user }}"
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
|
|
||||||
- name: Use tmux as default shell and attach to existing session
|
- name: Ensure tmux is used as default shell
|
||||||
ansible.builtin.lineinfile:
|
ansible.builtin.blockinfile:
|
||||||
path: /root/.bashrc
|
path: /root/.bashrc
|
||||||
line: |
|
block: |
|
||||||
case $- in
|
case $- in
|
||||||
*i*)
|
*i*)
|
||||||
if command -v tmux &>/dev/null; then
|
if command -v tmux &>/dev/null; then
|
||||||
@ -24,3 +24,4 @@
|
|||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
marker: "# {mark} ANSIBLE TMUX CONFIG"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user