Thank you for all the information provided.
For OLVM (i dont know if only for them) this helped me:
# touch /etc/profile.d/proxy.sh
# chown root:root /etc/profile.d/proxy.sh
# chmod 644 /etc/profile.d/proxy.sh
# vi /etc/profile.d/proxy.sh
---
###########proxy
export http_proxy=http://<PROXY_FQDN/IP>:<port>
export HTTPS_PROXY=http://<PROXY_FQDN/IP>:<port>
export https_proxy=http://<PROXY_FQDN/IP>:<port>
export HTTP_PROXY=http://<PROXY_FQDN/IP>:<port>
export no_proxy=localhost,127.0.0.1,<Self_Hosted_Engine_FQDN>
---
# source /etc/profile.d/proxy.sh (Load configuration for current session)
Make sure you have set proxy in /etc/yum.conf and/or /etc/dnf/dnf.conf
Add extra vars to the deployment command:
# touch /root/extra-vars.yml
# vi /root/extra-vars.yml
---
he_pause_host: true
he_proxy: http://<PROXY_FQDN/IP>:<port>
---
# hosted-engine --deploy --restore-from-file=backup_file
--ansible-extra-vars="(a)/root/extra-vars.yml"
Best regards,
Rok