From: Faseela K Date: Sat, 12 May 2018 06:01:22 +0000 (+0530) Subject: ansible-galaxy.sh enable custom requirements.yaml X-Git-Tag: v0.1.0~32 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=6b1ee7051a24a49cc8d116f2011d493a2ff42106;p=releng%2Fcommon-packer.git ansible-galaxy.sh enable custom requirements.yaml If applications provide a custom requirements.yaml the script should use the same, instead of the default requirements.yaml Change-Id: I4ef8b9d4754b6c11c17101cf33f672feddde4fa5 Signed-off-by: Faseela K --- diff --git a/ansible-galaxy.sh b/ansible-galaxy.sh index bccd666..3bcb0a3 100755 --- a/ansible-galaxy.sh +++ b/ansible-galaxy.sh @@ -16,5 +16,5 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" ansible-galaxy install -p "$ANSIBLE_ROLES_PATH" -r "$SCRIPT_DIR/requirements.yaml" if [ -f "$ANSIBLE_REQUIREMENTS_FILE" ]; then - ansible-galaxy install -p "$ANSIBLE_ROLES_PATH" -r "requirements.yaml" -fi + ansible-galaxy install -p "$ANSIBLE_ROLES_PATH" -r "$ANSIBLE_REQUIREMENTS_FILE" +fi \ No newline at end of file