Browse Source

Fix a couple simple test failures with updated build.

Jeff Geerling 7 years ago
parent
commit
451bf664be
2 changed files with 5 additions and 1 deletions
  1. 1 1
      .travis.yml
  2. 4 0
      tests/test.yml

+ 1 - 1
.travis.yml

@@ -9,7 +9,7 @@ env:
     init: /sbin/init
     run_opts: ""
   - distro: ubuntu1604
-    init: /usr/lib/systemd/systemd
+    init: /lib/systemd/systemd
     run_opts: "--privileged --volume=/sys/fs/cgroup:/sys/fs/cgroup:ro"
   - distro: ubuntu1404
     init: /sbin/init

+ 4 - 0
tests/test.yml

@@ -9,6 +9,10 @@
         - which
       when: ansible_os_family == 'RedHat'
 
+    - name: Update apt cache.
+      apt: update_cache=yes
+      when: ansible_os_family == 'Debian'
+
     - name: Ensure build dependencies are installed (Debian).
       apt: 'name="{{ item }}" state=installed'
       with_items: