+ yadm initialization for non priveleged and existing users
#861m7vaer Шаблон операционной системы на Debian 10
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
SERVER=$1
|
||||
PLAYBOOK=$2
|
||||
SITE_NAME=$3
|
||||
USER=$3
|
||||
|
||||
while [[ "$#" -gt 0 ]]; do
|
||||
case $1 in
|
||||
@ -28,8 +28,12 @@ if [[ -z "$PLAYBOOK" ]]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ -z "$USER" ]]; then
|
||||
USER=root
|
||||
fi
|
||||
|
||||
COMMAND=$(cat <<EOF
|
||||
ansible-playbook -e "lxc_host=${SERVER} -e runner=normal"
|
||||
ansible-playbook -e "lxc_host=${SERVER}" -e "runner=normal" -e "ansible_user=${USER}"
|
||||
EOF
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user