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 - name: Prepare
hosts: all hosts: all
tasks: tasks:
- name: Debug Message - name: Ensure apt cache is updated
debug: apt:
msg: No prepare steps required update_cache: true
when: ansible_pkg_mgr == 'apt'

View file

@ -2,6 +2,11 @@
- name: Prepare - name: Prepare
hosts: loadbalancer hosts: loadbalancer
tasks: tasks:
- name: Ensure apt cache is updated
apt:
update_cache: true
when: ansible_pkg_mgr == 'apt'
- name: Ensure HAProxy is installed - name: Ensure HAProxy is installed
package: package:
name: haproxy name: haproxy