Set UID/GID restrictions for ansible user in contrib/bootstrap.sh
This commit is contained in:
parent
307c1a9b8a
commit
34ed3289ba
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user