The *haproxy* installs HAproxy and sets up basic configuration for it. It configures the systemd unit to launch the service with the `-f /etc/haproxy` arguments, which will cause it to load all files from the `/etc/haproxy` directory, instead of just `/etc/haproxy/haproxy.cfg`. This will allow other roles to add frontend and backend configuration by adding additional files to this directory.
11 lines
200 B
YAML
11 lines
200 B
YAML
- name: reload systemd
|
|
command: systemctl daemon-reload
|
|
- name: restart haproxy
|
|
service:
|
|
name=haproxy
|
|
state=restarted
|
|
- name: reload haproxy
|
|
service:
|
|
name=haproxy
|
|
state=reloaded
|