set user shell with Ansible

This commit is contained in:
Pim Kunis 2022-11-26 11:17:07 +01:00
parent 39ae4ebef2
commit b2a77c972e
2 changed files with 3 additions and 10 deletions

View file

@ -1,5 +0,0 @@
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
LOGINSHELL=`getent passwd $USER | cut -d: -f7`
echo \"${LOGINSHELL}\"