14 lines
273 B
YAML
14 lines
273 B
YAML
---
|
|
- name: Install nginx
|
|
ansible.builtin.package:
|
|
name: nginx
|
|
state: present
|
|
- name: Allow nginx (HTTP, HTTPS) in ufw
|
|
community.general.ufw:
|
|
rule: allow
|
|
name: Nginx Full
|
|
- name: Start nginx
|
|
ansible.builtin.service:
|
|
name: nginx
|
|
state: started
|