diff --git a/tasks/install.yml b/tasks/install.yml index 1bd22c3b2c98ba680f511f16927df240e625c1e1..5f1aab3c50652fbe312aeb80f2bf2044d8cba0e1 100644 --- a/tasks/install.yml +++ b/tasks/install.yml @@ -27,3 +27,15 @@ state: directory when: haproxy_global.chroot is defined and haproxy_global.chroot +- name: Create service override directory + file: + path: /etc/systemd/system/haproxy.service.d + state: directory + +- name: Copy service override + copy: + dest: /etc/systemd/system/haproxy.service.d/override.conf + content: | + [Unit] + Wants=network-online.target + After=network-online.target