diff --git a/roles/configure-mirrors/tasks/mirror.yaml b/roles/configure-mirrors/tasks/mirror.yaml index 1f041e396..d96d7ffc7 100644 --- a/roles/configure-mirrors/tasks/mirror.yaml +++ b/roles/configure-mirrors/tasks/mirror.yaml @@ -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' diff --git a/tox.ini b/tox.ini index 00c32103f..e1c23342b 100644 --- a/tox.ini +++ b/tox.ini @@ -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}