Enhance the ceph-ansible-pr-syntax-check job by running ansible-lint as
well.
Signed-off-by: Sébastien Han <seb@redhat.com>
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
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