From c82468099b2037888a2785113e6f019fdaebe084 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oskar=20Sch=C3=B6ldstr=C3=B6m?= Date: Sun, 19 Mar 2017 11:03:45 -0500 Subject: [PATCH] Run source-install tests for Ubuntu 14.04 as there's no package available --- .travis.yml | 2 +- tests/test-source-install.yml | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index d8206d8..e429be2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,7 +17,7 @@ env: - distro: ubuntu1404 init: /sbin/init run_opts: "" - playbook: test.yml + playbook: test-source-install.yml - distro: ubuntu1204 init: /sbin/init run_opts: "" diff --git a/tests/test-source-install.yml b/tests/test-source-install.yml index 697df9c..d2a3d73 100644 --- a/tests/test-source-install.yml +++ b/tests/test-source-install.yml @@ -5,10 +5,19 @@ certbot_install_from_source: yes pre_tasks: + - name: Update apt cache. + apt: update_cache=yes cache_valid_time=600 + when: ansible_os_family == 'Debian' + changed_when: false + - name: Install cron (RedHat). yum: name=cronie state=present when: ansible_os_family == 'RedHat' + - name: Install cron (Debian). + apt: name=cron state=present + when: ansible_os_family == 'Debian' + roles: - geerlingguy.git - role_under_test