From: Sébastien Han Date: Thu, 22 Jun 2017 15:37:54 +0000 (+0200) Subject: ceph-ansible-pr-syntax-check: add library path X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F754%2Fhead;p=ceph-build.git ceph-ansible-pr-syntax-check: add library path Explicitly set the LIBRARY path to avoid the following Ansible error: ERROR! no action detected in task. This often indicates a misspelled module name, or incorrect module path. We need this change because roles path changed from ceph-ansible/ to ceph-ansible/infrastructure-playbooks so now when we are running the syntax check it looks in ceph-ansible/infrastructure-playbooks/library instead of ceph-ansible/library. Signed-off-by: Sébastien Han --- diff --git a/ceph-ansible-pr-syntax-check/build/build b/ceph-ansible-pr-syntax-check/build/build index c0a99a4b..4916996e 100644 --- a/ceph-ansible-pr-syntax-check/build/build +++ b/ceph-ansible-pr-syntax-check/build/build @@ -16,5 +16,6 @@ $VENV/ansible-playbook -i '127.0.0.1,' site-docker.yml.sample --syntax-check --l cp -r roles infrastructure-playbooks/ cp -r group_vars infrastructure-playbooks/ mv infrastructure-playbooks/group_vars/all.yml.sample infrastructure-playbooks/group_vars/all.yml +export ANSIBLE_LIBRARY=$WORKSPACE/ceph-ansible/library $VENV/ansible-playbook -i '127.0.0.1,' infrastructure-playbooks/*.yml --syntax-check --list-tasks -vv