+ yadm initialization for non priveleged and existing users

#861m7vaer Шаблон операционной системы на Debian 10
This commit is contained in:
2024-03-22 18:47:05 +03:00
parent 958e39bce7
commit fb93943ba5
7 changed files with 21 additions and 11 deletions

View File

@ -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
)