Setting up of the apt repo should be independent of the roles

Change-Id: I1f8ba8f3f449f2a396fac7bff993794b79f17295
This commit is contained in:
Tim Kuhlman 2014-12-17 15:32:15 -07:00
parent ec53936cd0
commit 37bfa6d818
1 changed files with 6 additions and 0 deletions

View File

@ -10,6 +10,12 @@
mini_mon_host: 192.168.10.4
zookeeper_hosts: "{{mini_mon_host}}:2181"
pre_tasks:
- name: Make sure apt https is available
apt: name=apt-transport-https state=present
- name: Add in custom apt key
apt_key: url=https://region-a.geo-1.objects.hpcloudsvc.com/v1/46995959297574/mini-mon/public_repo/mon.gpg state=present
- name: Add in custom apt repo
apt_repository: repo='deb https://region-a.geo-1.objects.hpcloudsvc.com/v1/46995959297574/mini-mon/public_repo precise release' state=present
- name: apt-get update
apt: update_cache=yes
tasks: