ansible-galaxy.sh enable custom requirements.yaml 20/10620/1
authorFaseela K <faseela.k@ericsson.com>
Sat, 12 May 2018 06:01:22 +0000 (11:31 +0530)
committerFaseela K <faseela.k@ericsson.com>
Sat, 12 May 2018 18:38:20 +0000 (00:08 +0530)
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 <faseela.k@ericsson.com>
ansible-galaxy.sh

index bccd666..3bcb0a3 100755 (executable)
@@ -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