Files
cloud-configuration/ansible/roles/nginx/tasks/main.yaml
T
2023-08-19 17:18:44 +02:00

17 lines
435 B
YAML

---
- name: Install nginx
ansible.builtin.apt:
name: nginx
update_cache: true
- name: Allow nginx through firewall
community.general.ufw:
name: Nginx Full
rule: allow
- name: Disable server tokens
ansible.builtin.lineinfile:
search_string: "# server_tokens off;"
path: /etc/nginx/nginx.conf
line: "server_tokens off;"
- name: Prepare for Let's Encrypt
ansible.builtin.import_tasks: letsencrypt.yaml