]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
testnode: Perform repo tasks on all Ubuntu testnodes
authorDavid Galloway <dgallowa@redhat.com>
Thu, 15 Jun 2017 16:00:22 +0000 (12:00 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Thu, 15 Jun 2017 16:29:06 +0000 (12:29 -0400)
Just realized apt/repos.yml hasn't been getting run on Xenial testnodes.
There are some important tasks in there that should be run (e.g., Removing custom repos from
/etc/apt/sources.list.d).

We aren't using apt-mirror for Xenial so I've limited writing the master
sources.list to Trusty and earlier.

Signed-off-by: David Galloway <dgallowa@redhat.com>
roles/testnode/tasks/apt/repos.yml
roles/testnode/tasks/apt_systems.yml

index 5a7eacd5a0d8ff33742bd8e1fbaadb6bb693ec17..0bba02478a3b8d4d47c0d625041ffffe920aa4d5 100644 (file)
@@ -21,6 +21,8 @@
     mode: 0644
   register: apt_prefs
 
+# 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: Add sources list
   template:
     dest: /etc/apt/sources.list
@@ -29,7 +31,8 @@
     group: root
     mode: 0644
   register: sources
-  when: ansible_architecture != "aarch64"
+  when: ansible_architecture != "aarch64" and
+        ansible_distribution_major_version|int < 15
 
 - name: Install apt keys
   apt_key:
index 53b659892f8781e2eb22eaf1c0fc87059da5249c..2319d66ec0f309f90d7d28d4c5c5bd30d7f0c993 100644 (file)
@@ -1,9 +1,6 @@
 ---
-# 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|int < 15
   tags:
     - repos