]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-ansible-pr-syntax-check: add library path 754/head
authorSébastien Han <seb@redhat.com>
Thu, 22 Jun 2017 15:37:54 +0000 (17:37 +0200)
committerSébastien Han <seb@redhat.com>
Wed, 28 Jun 2017 15:40:11 +0000 (17:40 +0200)
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 <seb@redhat.com>
ceph-ansible-pr-syntax-check/build/build

index c0a99a4bdb137fd7f37ccaa86c80df1997b32c8c..4916996ef141d70d5d20edc8a2497e01019be2fe 100644 (file)
@@ -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