iloth_ansible/roles/nginx/tasks/main.yml

17 lines
273 B
YAML

---
- name: Install Nginx
apt:
name: nginx-full
- name: install Certbot Nginx plugin
apt:
name:
- certbot
- python3-certbot-nginx
when: installCertbot == true
- name: Allow http and https connexions
ufw:
rule: allow
name: 'Nginx Full'