From 5fe5b6ca1a2777989413d8375b8e98a649e03ab8 Mon Sep 17 00:00:00 2001 From: David Moreau-Simard Date: Wed, 6 Sep 2017 22:54:25 -0400 Subject: [PATCH] Fix lint issue Use apt: update_cache=yes instead of an apt-get command. Change-Id: I18c602e576f3895575fa807b1bbf5a389d6c57f1 --- roles/configure-mirrors/tasks/mirror.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/roles/configure-mirrors/tasks/mirror.yaml b/roles/configure-mirrors/tasks/mirror.yaml index d96d7ffc7..1f041e396 100644 --- a/roles/configure-mirrors/tasks/mirror.yaml +++ b/roles/configure-mirrors/tasks/mirror.yaml @@ -22,5 +22,6 @@ # Make sure OS does not have a stale package cache. - name: Update apt cache become: yes - command: apt-get update + apt: + update_cache: yes when: ansible_os_family == 'Debian'