blob: b0e7df5b5f9cbc74011b98fc84e1d62422705b19 (
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
32
33
34
35
|
---
- 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
- name: install and setup stream module
when: nginx_stream_module
import_tasks: stream.yml
|