From 3a2505727d853c2c1751554c75a338408131c765 Mon Sep 17 00:00:00 2001 From: Julia Kreger Date: Fri, 31 Jul 2015 00:39:31 -0400 Subject: [PATCH] Update package cache before installing packages On Debian/Ubuntu, update the package cache so we do not try to download old and out of date packages when creating test virtual machines. Change-Id: Ica0879b7b6c3bdbf7a520a6e746b5d1cc670fe61 Closes-Bug: #1480046 --- playbooks/roles/bifrost-create-vm-nodes/tasks/main.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/playbooks/roles/bifrost-create-vm-nodes/tasks/main.yml b/playbooks/roles/bifrost-create-vm-nodes/tasks/main.yml index ebbc7714b..2c1e6680b 100644 --- a/playbooks/roles/bifrost-create-vm-nodes/tasks/main.yml +++ b/playbooks/roles/bifrost-create-vm-nodes/tasks/main.yml @@ -14,6 +14,9 @@ # # TODO: Consider converting to ansible virt module. --- +- name: "Update apt cache if Ubuntu/Debian" + apt: update_cache=yes + when: ansible_os_family == "Debian" - name: "Load Distribution defaults" include_vars: "{{ item }}" with_first_found: