infra/roles/webservers/tasks/main.yml

19 lines
275 B
YAML
Raw Normal View History

2024-01-02 19:05:01 -05:00
---
- name: allow http
ufw:
rule: allow
port: '80'
proto: tcp
- name: allow https
ufw:
rule: allow
port: '443'
proto: tcp
- name: restart ufw
service: name=ufw state=restarted enabled=yes
- name: install nginx
apt: name=nginx status=latest