Only collect proxy once, include manager in no_proxy value on minions

This commit is contained in:
William Wernert
2021-03-11 16:03:43 -05:00
parent a86b2ab653
commit 3306ffa792
2 changed files with 12 additions and 7 deletions

View File

@@ -2282,6 +2282,9 @@ set_proxy() {
# Don't proxy localhost, local ip, and management ip
no_proxy_string="localhost, 127.0.0.1, ${MAINIP}, ${HOSTNAME}"
if [[ -n $MSRV ]] && [[ -n $MSRVIP ]];then
no_proxy_string="${no_proxy_string}, ${MSRVIP}, ${MSRV}"
fi
# Set proxy environment variables used by curl, wget, docker, and others
{