Merge "(fix) Add -E for sudo to pick user env"

This commit is contained in:
Zuul 2020-10-27 22:32:34 +00:00 committed by Gerrit Code Review
commit 4f8d4bcbbb

View File

@ -23,6 +23,6 @@ TMP_DIR=${TMP_DIR:-"$(dirname $(mktemp -u))"}
ANSIBLE_HOSTS=${ANSIBLE_HOSTS:-"${TMP_DIR}/ansible_hosts"}
PLAYBOOK_CONFIG=${PLAYBOOK_CONFIG:-"${TMP_DIR}/config.yaml"}
sudo ansible-playbook -i "$ANSIBLE_HOSTS" \
sudo -E ansible-playbook -i "$ANSIBLE_HOSTS" \
playbooks/airship-airshipctl-build-gate.yaml \
-e @"$PLAYBOOK_CONFIG"