blob: a975ce52c4675dd01c612d9d3959e9335732c38a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
---
- name: install nginx
apt:
name: "{{ nginx_pkg_variant }}"
state: present
- name: remove nginx default config
file:
name: /etc/nginx/sites-enabled/default
state: absent
notify: restart nginx
- name: install nginx config.d files
loop: "{{ nginx_conf_d_files }}"
copy:
src: "conf.d/{{ item }}.conf"
dest: /etc/nginx/conf.d/
notify: restart nginx
- name: install nginx config snippets
loop: "{{ nginx_snippets }}"
copy:
src: "snippets/{{ item }}.conf"
dest: /etc/nginx/snippets/
notify: restart nginx
- name: generate Diffie-Hellman parameters
openssl_dhparam:
path: /etc/ssl/dhparams.pem
size: 2048
notify: restart nginx
|