From: Sébastien Han Date: Tue, 19 Sep 2017 20:49:59 +0000 (+0200) Subject: ceph-ansible-pr-syntax-check: use ansible-lint X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=2153b347e413c4d66abd4b45d49ef797830447a1;p=ceph-build.git ceph-ansible-pr-syntax-check: use ansible-lint Enhance the ceph-ansible-pr-syntax-check job by running ansible-lint as well. 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 4916996e..ffe66cda 100644 --- a/ceph-ansible-pr-syntax-check/build/build +++ b/ceph-ansible-pr-syntax-check/build/build @@ -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