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'