From 0bb6cb9a5fb3b6fe1109f07222e171571ea21a9b Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Han?= Date: Thu, 22 Jun 2017 17:37:54 +0200 Subject: [PATCH] ceph-ansible-pr-syntax-check: add library path MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- ceph-ansible-pr-syntax-check/build/build | 1 + 1 file changed, 1 insertion(+) 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 -- 2.47.3