]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-build-pull-requests: install ansible-galaxy roles before playbook syntax check 274/head
authorAndrew Schoen <aschoen@redhat.com>
Mon, 4 Jan 2016 22:09:46 +0000 (16:09 -0600)
committerAndrew Schoen <aschoen@redhat.com>
Mon, 4 Jan 2016 22:20:44 +0000 (16:20 -0600)
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
ceph-build-pull-requests/build/build

index cc21e1002516d6e3bd03fd6e4f1fa60060de486f..cdc1dbdaf6e4579edff84942711b9a454ead055a 100644 (file)
@@ -36,6 +36,11 @@ if ! venv/bin/pip install --find-links="file://$PIP_SDIST_INDEX" --no-index ansi
     venv/bin/pip install --find-links="file://$PIP_SDIST_INDEX" --no-index ansible
 fi
 
+# install ansible-galaxy roles for playbook syntax check
+for reqs in $WORKSPACE/ansible/requirements/*; do
+    ansible-galaxy install -r $reqs -p $WORKSPACE/ansible/roles --force
+done
+
 # Syntax-check each Ansible playbook
 for playbook in $WORKSPACE/ansible/*.yml; do
     ansible-playbook -i '127.0.0.1,' $playbook --syntax-check