Set UID/GID restrictions for ansible user in contrib/bootstrap.sh

This commit is contained in:
Salt 2022-08-29 12:40:17 -05:00
parent 307c1a9b8a
commit 34ed3289ba

View File

@ -20,7 +20,15 @@ fi
echo "Adding ansible user..."
if ! useradd ansible > /dev/null 2>&1; then
if ! \
useradd \
-K UID_MIN=600 \
-K UID_MAX=700 \
-K GID_MIN=600 \
-K GID_MAX=700 \
ansible \
> /dev/null 2>&1
then
err=$?
case $err in
0)