16 lines
294 B
YAML
16 lines
294 B
YAML
---
|
|
|
|
- name: Install haproxy package
|
|
ansible.builtin.package:
|
|
name: haproxy
|
|
state: present
|
|
update_cache: true
|
|
|
|
- name: Put haproxy config file
|
|
ansible.builtin.template:
|
|
src: haproxy.cfg.j2
|
|
dest: /etc/haproxy/haproxy.cfg
|
|
mode: "0o644"
|
|
notify:
|
|
- Restart haproxy
|