From b9a569d50699a80755ff66f41bc064fbc9041318 Mon Sep 17 00:00:00 2001 From: Xicheng Chang Date: Fri, 24 Apr 2015 15:44:30 -0700 Subject: [PATCH] Fix bugs in ansible common role Change-Id: I83e84aa79b97fd6a10bbd9e16c1dc1927ce4063f --- ansible/openstack_juno/roles/common/tasks/main.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ansible/openstack_juno/roles/common/tasks/main.yml b/ansible/openstack_juno/roles/common/tasks/main.yml index cdd585b..3730a33 100644 --- a/ansible/openstack_juno/roles/common/tasks/main.yml +++ b/ansible/openstack_juno/roles/common/tasks/main.yml @@ -1,11 +1,14 @@ --- +- name: first update pkgs + apt: update_cache=yes + - name: install ubuntu-cloud-keyring(ubuntu) apt: name={{ item }} state=latest with_items: - ubuntu-cloud-keyring - name: add juno cloudarchive - apt_repository: repo={{ juno_cloud_archive }} state=present + apt_repository: repo="{{ juno_cloud_archive }}" state=present - name: update packages once apt: update_cache=yes