blob: a434b708730ff8fd3c5b17d4f6201b4d718d2cd7 (
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: "{{ nginx_dhparam_size }}"
notify: restart nginx
|