iloth_ansible/roles/nginx/tasks/main.yml

17 lines
273 B
YAML
Raw Normal View History

2020-04-19 03:28:50 +02:00
---
- name: Install Nginx
apt:
name: nginx-full
- name: install Certbot Nginx plugin
apt:
2021-01-01 23:39:04 +01:00
name:
- certbot
- python3-certbot-nginx
when: installCertbot == true
2020-04-22 22:54:07 +02:00
- name: Allow http and https connexions
ufw:
rule: allow
name: 'Nginx Full'