From 28e4cac3349e515ea4b409c7fa9914d61ddcd136 Mon Sep 17 00:00:00 2001 From: Andrew Schoen Date: Tue, 16 Jun 2015 16:39:03 -0500 Subject: [PATCH] testnode: do not provide custom repos or sources.list for vivid We'll be using distro provided packages for vivid so skip over defining our custom packages for vivid. Signed-off-by: Andrew Schoen --- roles/testnode/tasks/apt_systems.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/roles/testnode/tasks/apt_systems.yml b/roles/testnode/tasks/apt_systems.yml index c1ee7419..02fd62e5 100644 --- a/roles/testnode/tasks/apt_systems.yml +++ b/roles/testnode/tasks/apt_systems.yml @@ -1,6 +1,17 @@ --- +# Starting with ubuntu 15.04 we no longer maintain our own package mirrors. +# For anything ubuntu < 15.04 or debian <=7 we still do. - name: Setup local repo files. include: apt/repos.yml + when: ansible_distribution_major_version < 15 + tags: + - repos + +- name: Update apt cache. + apt: + update_cache: yes + when: ansible_distribution_major_version >= 15 and + ansible_distribution == "Ubuntu" tags: - repos -- 2.47.3