Fixes ansible role_path in 00_setup.sh

Closes: 663

Change-Id: Ia1c2b0186355058896c996325776b6554d49ca9d
This commit is contained in:
Suraj Patil 2021-11-02 09:57:47 +00:00
parent ebc4d99215
commit 5d61a071ed

View File

@ -45,7 +45,7 @@ else
fi
# zuul-jobs provides ensure-docker role available by default in zuul
ansible-galaxy install git+https://opendev.org/zuul/zuul-jobs.git -p "${AIRSHIPCTL_WS}/../zuul-jobs"
ansible-galaxy install git+https://opendev.org/zuul/zuul-jobs.git -p "${AIRSHIPCTL_WS}/../"
echo "primary ansible_host=localhost ansible_connection=local ansible_python_interpreter=/usr/bin/python3" > "$ANSIBLE_HOSTS"
printf "[defaults]\nroles_path = %s/roles:zuul-jobs/roles\n" "$AIRSHIPCTL_WS" > "$ANSIBLE_CFG"
printf "[defaults]\nroles_path = %s/roles:%s/../zuul-jobs/zuul-jobs/roles\n" "$AIRSHIPCTL_WS" "$AIRSHIPCTL_WS" > "$ANSIBLE_CFG"