Skip to content
Snippets Groups Projects
Commit cafd0a6d authored by Dmitriy Safronov's avatar Dmitriy Safronov
Browse files

Merge branch 'development' into 'master'

- tmux

See merge request ansible/roles/essential!3
parents e51cb669 2a44a156
No related branches found
No related tags found
No related merge requests found
...@@ -5,20 +5,3 @@ ...@@ -5,20 +5,3 @@
include_tasks: ubuntu/main.yml include_tasks: ubuntu/main.yml
when: ansible_distribution == 'Ubuntu' or ansible_distribution == 'Debian' or ansible_distribution == 'Linux Mint' when: ansible_distribution == 'Ubuntu' or ansible_distribution == 'Debian' or ansible_distribution == 'Linux Mint'
tags: ubuntu tags: ubuntu
########################################################################################################################
# TMUX
- name: Enable tmux on login for non-system users and root
copy:
content: |
if [[ $- == *i* ]] && [[ ${UID} -eq 0 || ${UID} -ge 1000 ]]; then
if [[ -n "$(which tmux)" ]]; then
if [[ -z "${TMUX}" ]]; then
tmux has-session -t login || exec tmux new-session -s login && exec tmux attach-session -d -t login
fi
fi
fi
dest: /etc/profile.d/tmux.sh
owner: root
group: root
mode: 0644
...@@ -23,4 +23,3 @@ ...@@ -23,4 +23,3 @@
- sed - sed
- grep - grep
- rsync - rsync
- tmux
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment