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