feat: add extra mods for nginx

This commit is contained in:
VC
2024-07-05 11:53:41 +02:00
parent 3aa021d748
commit f46db81f37
2 changed files with 9 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
---
nginx_extra_mods: []

View File

@@ -5,6 +5,12 @@
name: nginx-full
state: present
- name: Install nginx extra mods
ansible.builtin.package:
name: "libnginx-mod-http-{{ item }}"
state: present
loop: "{{ nginx_extra_mods }}"
- name: Create dhparam
ansible.builtin.command:
cmd: /usr/bin/openssl dhparam -out /etc/nginx/dhparam.pem 2048