--- /dev/null
+---
+
+haproxy_user_socket: '/run/haproxy/user.sock'
+haproxy_admin_socket: '/run/haproxy/admin.sock'
+haproxy_test_socket: '/etc/passwd'
+
+haproxy_wait_for_enable: true
+haproxy_wait_interval: 2
+haproxy_wait_retries: 60
+
+# vim: filetype=yaml
--- /dev/null
+---
+
+- debug:
+ msg: "Enabling server '{{ backend_server }}' on HAProxy backend '{{ backend }}' ..."
+ verbosity: 0
+
+- name: "Enabling backend server {{ backend }}/{{ backend_server }}."
+ community.general.haproxy:
+ state: enabled
+ host: "{{ backend_server }}"
+ socket: "{{ haproxy_admin_socket }}"
+ backend: "{{ backend }}"
+ wait: "{{ haproxy_wait_for_enable }}"
+ wait_interval: "{{ haproxy_wait_interval }}"
+ wait_retries: "{{ haproxy_wait_retries }}"
+
+# vim: filetype=yaml