30 lines
462 B
YAML
30 lines
462 B
YAML
---
|
|
- name: "Install haproxy via apt"
|
|
apt:
|
|
update_cache: yes
|
|
state: present
|
|
name:
|
|
- haproxy
|
|
|
|
- name: Enable haproxy
|
|
service:
|
|
name: haproxy
|
|
state: started
|
|
enabled: yes
|
|
|
|
- name: "Install certbot via apt"
|
|
apt:
|
|
update_cache: yes
|
|
state: present
|
|
name:
|
|
- python3-certbot
|
|
|
|
- name: Reset ufw rules to default
|
|
community.general.ufw:
|
|
state: reset
|
|
|
|
- name: Enable ufw
|
|
community.general.ufw:
|
|
state: enabled
|
|
...
|