Revert "Fix lint issue"

This also adds an exception to ansible-lint, ANSIBLE0006, because
we want to use "apt-get update" for updating the apt cache [1]

[1]: https://review.openstack.org/#/c/492716/

This reverts commit 5fe5b6ca1a.

Change-Id: Icd79198964e86c7a2c73102f3e4d845d161b924d
This commit is contained in:
David Moreau Simard 2017-09-07 14:27:53 +00:00 committed by David Moreau-Simard
parent 5fe5b6ca1a
commit 83bdedd4b2
2 changed files with 2 additions and 3 deletions

View File

@ -22,6 +22,5 @@
# Make sure OS does not have a stale package cache.
- name: Update apt cache
become: yes
apt:
update_cache: yes
command: apt-get update
when: ansible_os_family == 'Debian'

View File

@ -35,7 +35,7 @@ commands =
# NOTE(pabelanger): Ignore the following checks:
# ANSIBlE0012: Commands should not change things if nothing needs doing
bash -c "find playbooks -type f -regex '.*.y[a]?ml' -print0 | xargs -n1 -0 \
ansible-lint -x ANSIBLE0012 2> /dev/null"
ansible-lint -x ANSIBLE0006,ANSIBLE0012 2> /dev/null"
[testenv:venv]
commands = {posargs}