* separate launch script by runner type concepts

* do not launch sudo playbook for simple server install
* use domain_name as env variable from launch script
This commit is contained in:
2024-01-22 01:24:38 +03:00
parent ffb599469e
commit 958e39bce7
5 changed files with 71 additions and 16 deletions

View File

@ -42,7 +42,7 @@ if [[ ! -f "$PLAYBOOK" ]]; then
fi
COMMAND=$(cat <<EOF
ansible-playbook -e "lxc_host=$LXC_HOST" --ssh-common-args="-o ProxyCommand='ssh -W %h:%p -q root@$SERVER'" $PLAYBOOK
ansible-playbook -e "lxc_host=$LXC_HOST" -e runner=lxc --ssh-common-args="-o ProxyCommand='ssh -W %h:%p -q root@$SERVER'" $PLAYBOOK
EOF
)