Skip to content

Commit 4506777

Browse files
vegerernestas-poskus
authored andcommitted
Update cache after adding the repository, not before installing the package (#71)
1 parent 1f270a4 commit 4506777

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tasks/Debian.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
apt_key: id=E56151BF keyserver=keyserver.ubuntu.com state=present
44

55
- name: Add mesosphere repo
6-
apt_repository: repo='deb {{ mesosphere_apt_url }} {{ ansible_distribution_release | lower }} main' state=present
6+
apt_repository: repo='deb {{ mesosphere_apt_url }} {{ ansible_distribution_release | lower }} main' state=present update_cache=yes
77

88
- name: Install Debian OS packages
9-
apt: pkg={{ item }} state=present update_cache=yes
9+
apt: pkg={{ item }} state=present
1010
with_items:
1111
- wget
1212
- curl

0 commit comments

Comments
 (0)