From: Andrew Schoen Date: Mon, 4 Jan 2016 22:09:46 +0000 (-0600) Subject: ceph-build-pull-requests: install ansible-galaxy roles before playbook syntax check X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F274%2Fhead;p=ceph-build.git ceph-build-pull-requests: install ansible-galaxy roles before playbook syntax check Signed-off-by: Andrew Schoen --- diff --git a/ceph-build-pull-requests/build/build b/ceph-build-pull-requests/build/build index cc21e100..cdc1dbda 100644 --- a/ceph-build-pull-requests/build/build +++ b/ceph-build-pull-requests/build/build @@ -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