Fix Travis-CI build

This commit is contained in:
Xan Manning 2020-02-22 14:33:12 +00:00
parent f82f90aae0
commit 31debb2f5d
2 changed files with 9 additions and 3 deletions

View file

@ -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'

View file

@ -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