From 7ade5aac1a808d8bd92337fb658b46e7af55dc7c Mon Sep 17 00:00:00 2001 From: Andrew Schoen Date: Mon, 4 Jan 2016 16:09:46 -0600 Subject: [PATCH] ceph-build-pull-requests: install ansible-galaxy roles before playbook syntax check Signed-off-by: Andrew Schoen --- ceph-build-pull-requests/build/build | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.47.3