Skip to content

Commit

Permalink
Update cache after adding the repository, not before installing the p…
Browse files Browse the repository at this point in the history
…ackage (#71)
  • Loading branch information
veger authored and ernestas-poskus committed Nov 22, 2016
1 parent 1f270a4 commit 4506777
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks/Debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4506777

Please sign in to comment.