aboutsummaryrefslogtreecommitdiffstats
path: root/roles/users
diff options
context:
space:
mode:
authorEmil Renner Berthing <esmil@labitat.dk>2020-06-01 16:55:20 +0200
committerEmil Renner Berthing <esmil@labitat.dk>2020-06-01 16:55:20 +0200
commitfc663113f12a8fa4b419bd71ad3643aad50357cb (patch)
tree327b6654fbce91c4fc6f8600a8dfb334729f9334 /roles/users
parentfb68938e203c50e042f9ae3421a1c9e8724a090d (diff)
downloadlabitat-ansible-fc663113f12a8fa4b419bd71ad3643aad50357cb.tar.gz
labitat-ansible-fc663113f12a8fa4b419bd71ad3643aad50357cb.tar.xz
labitat-ansible-fc663113f12a8fa4b419bd71ad3643aad50357cb.zip
users: esmil: add stitch key and update .bashrc
Diffstat (limited to 'roles/users')
-rw-r--r--roles/users/defaults/main.yml1
-rw-r--r--roles/users/files/esmil/bashrc4
2 files changed, 2 insertions, 3 deletions
diff --git a/roles/users/defaults/main.yml b/roles/users/defaults/main.yml
index f42a67f..370b9be 100644
--- a/roles/users/defaults/main.yml
+++ b/roles/users/defaults/main.yml
@@ -6,6 +6,7 @@ userdata:
tasks: true
password: '$6$1RwgF85UfHCIPzNd$Ow9pn9muQ2raoB0andBcrDkB9UqqmXylqWVXDsxgFqhHc5uNk7MZdhtGnz9P5UOSwadEpHkSG0VrP9eOPM8nj0'
authorized_keys:
+ - 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOuodYrzc+xUF8BiC39KfzeK11BFXmz6rYMEHxYfhjum esmil@stitch'
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIESZrJ5ystrdDYZok0jCJKePa2JUL+t2DrbkMWwNheeQ esmil@plastik2'
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINGvUI9Gme812b75R//zEGJm5pURhaJpWCn7lwMuOrVC esmil@alcazar'
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHo3wq70/mMiOTgNdijxDp7CjrclMOM9f7JSnMtqSevM esmil@matahari'
diff --git a/roles/users/files/esmil/bashrc b/roles/users/files/esmil/bashrc
index dc0c80a..e217319 100644
--- a/roles/users/files/esmil/bashrc
+++ b/roles/users/files/esmil/bashrc
@@ -1,11 +1,9 @@
# if not running interactively, don't do anything
-[[ $- != *i* ]] && return
+[[ $- = *i* ]] || return
set -o vi
export PS1='\[\e[1;32m\]\u\[\e[00m\]@\[\e[0;32m\]\h\[\e[1;34m\]\w\[\e[00m\]\$ '
-unset PROMPT_COMMAND
-export -n PROMPT_COMMAND
# directory listing
if type dircolors > /dev/null 2>&1; then