mirror of
https://github.com/2martens/cloud-configuration.git
synced 2026-10-17 16:46:51 +02:00
17 lines
435 B
YAML
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
|