]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-ansible-pr-syntax-check: use ansible-lint 869/head
authorSébastien Han <seb@redhat.com>
Tue, 19 Sep 2017 20:49:59 +0000 (22:49 +0200)
committerSébastien Han <seb@redhat.com>
Tue, 19 Sep 2017 21:41:23 +0000 (23:41 +0200)
Enhance the ceph-ansible-pr-syntax-check job by running ansible-lint as
well.

Signed-off-by: Sébastien Han <seb@redhat.com>
ceph-ansible-pr-syntax-check/build/build

index 4916996ef141d70d5d20edc8a2497e01019be2fe..ffe66cda90a3d9a480d81195564d7223680b3676 100644 (file)
@@ -3,7 +3,7 @@
 set -e
 
 # the following two methods exist in scripts/build_utils.sh
-pkgs=( "ansible")
+pkgs=( "ansible==2.3.1" "ansible-lint" )
 install_python_packages "pkgs[@]"
 
 cd $WORKSPACE/ceph-ansible
@@ -19,3 +19,6 @@ mv infrastructure-playbooks/group_vars/all.yml.sample infrastructure-playbooks/g
 export ANSIBLE_LIBRARY=$WORKSPACE/ceph-ansible/library
 
 $VENV/ansible-playbook -i '127.0.0.1,' infrastructure-playbooks/*.yml --syntax-check --list-tasks -vv
+
+$VENV/ansible-lint site.yml.sample
+$VENV/ansible-lint site-docker.yml.sample