From 450677768046c27bb6293a4aae784dc228ab7d09 Mon Sep 17 00:00:00 2001 From: Maarten Bezemer Date: Tue, 22 Nov 2016 16:19:05 +0100 Subject: [PATCH] Update cache after adding the repository, not before installing the package (#71) --- tasks/Debian.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/Debian.yml b/tasks/Debian.yml index 9c7cca1..a540b8f 100644 --- a/tasks/Debian.yml +++ b/tasks/Debian.yml @@ -3,10 +3,10 @@ apt_key: id=E56151BF keyserver=keyserver.ubuntu.com state=present - name: Add mesosphere repo - apt_repository: repo='deb {{ mesosphere_apt_url }} {{ ansible_distribution_release | lower }} main' state=present + apt_repository: repo='deb {{ mesosphere_apt_url }} {{ ansible_distribution_release | lower }} main' state=present update_cache=yes - name: Install Debian OS packages - apt: pkg={{ item }} state=present update_cache=yes + apt: pkg={{ item }} state=present with_items: - wget - curl