From 31debb2f5d722c8caa32ac545077039e7e521b77 Mon Sep 17 00:00:00 2001 From: Xan Manning Date: Sat, 22 Feb 2020 14:33:12 +0000 Subject: [PATCH] Fix Travis-CI build --- molecule/default/prepare.yml | 7 ++++--- molecule/highavailability/prepare.yml | 5 +++++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/molecule/default/prepare.yml b/molecule/default/prepare.yml index 5aed1ec..7ad302a 100644 --- a/molecule/default/prepare.yml +++ b/molecule/default/prepare.yml @@ -2,6 +2,7 @@ - name: Prepare hosts: all tasks: - - name: Debug Message - debug: - msg: No prepare steps required + - name: Ensure apt cache is updated + apt: + update_cache: true + when: ansible_pkg_mgr == 'apt' diff --git a/molecule/highavailability/prepare.yml b/molecule/highavailability/prepare.yml index 8df6e98..662f8d2 100644 --- a/molecule/highavailability/prepare.yml +++ b/molecule/highavailability/prepare.yml @@ -2,6 +2,11 @@ - name: Prepare hosts: loadbalancer tasks: + - name: Ensure apt cache is updated + apt: + update_cache: true + when: ansible_pkg_mgr == 'apt' + - name: Ensure HAProxy is installed package: name: haproxy