add nginx role

This commit is contained in:
Václav Uruba 2023-09-09 16:51:48 +02:00
parent b8d26d4938
commit 7f6fdbfd2c
Signed by: uruba
GPG Key ID: 9D8E987C4B2E1E9C
3 changed files with 13 additions and 0 deletions

View File

@ -9,3 +9,4 @@
- htop
- tmux
- fail2ban
- nginx

View File

@ -0,0 +1,3 @@
---
dependencies:
- role: ufw

View File

@ -0,0 +1,9 @@
---
- 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