Remove ansible-lint checks from Juno branch
This patch removes ansible-lint checks from gate-check-lint and everything else in place to facilitate it. ansible-lint does not support the version of ansible used and it is preferred that we not use a hacked version of ansible. Change-Id: I6887d4d78340ded8167b18c56cc1c86c4cdf1faa Closes-Bug: #1484849
This commit is contained in:
parent
e58b022ab1
commit
4390acb4b3
|
@ -1,4 +1,3 @@
|
|||
ansible-lint>=2.0.3
|
||||
flake8==2.2.4
|
||||
hacking>=0.10.0,<0.11
|
||||
pep8==1.5.7
|
||||
|
|
|
@ -48,13 +48,6 @@ if ! which ansible-playbook > /dev/null; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
# Install the development requirements
|
||||
if [ -f dev-requirements.txt ]; then
|
||||
pip2 install -r dev-requirements.txt || pip install -r dev-requirements.txt
|
||||
else
|
||||
pip2 install ansible-lint || pip install ansible-lint
|
||||
fi
|
||||
|
||||
# Perform our simple sanity checks
|
||||
echo -e '[all]\nlocalhost ansible_connection=local' | tee local_only_inventory
|
||||
|
||||
|
@ -64,10 +57,3 @@ ansible-playbook -i local_only_inventory --syntax-check \
|
|||
$(find ${PLAYBOOK_PATH} -type f -name "*.yml" \
|
||||
! -name "os-service-config-update.yml" \
|
||||
! -name "host-network-setup.yml")
|
||||
|
||||
# Perform a lint check on all playbooks and roles
|
||||
info_block "Running Lint Check"
|
||||
ansible-lint --version
|
||||
ansible-lint $(find ${PLAYBOOK_PATH} -type f -name "*.yml" \
|
||||
! -name "os-service-config-update.yml" \
|
||||
! -name "host-network-setup.yml")
|
||||
|
|
Loading…
Reference in New Issue