16 lines
327 B
YAML
16 lines
327 B
YAML
---
|
|
|
|
# install haproxy
|
|
- name: "install - haproxy"
|
|
ansible.builtin.apt:
|
|
name: "haproxy"
|
|
state: "latest"
|
|
cache_valid_time: "120"
|
|
when: 'ansible_os_family == "Debian"'
|
|
|
|
# start haproxy service
|
|
- name: "service - start haproxy"
|
|
ansible.builtin.systemd:
|
|
name: "haproxy"
|
|
state: "started"
|
|
enabled: true
|