Add include files before main nginx config
This commit is contained in:
parent
ef432642dd
commit
80a770f399
1 changed files with 8 additions and 9 deletions
|
@ -43,15 +43,6 @@
|
||||||
- includes
|
- includes
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
- name: Install config
|
|
||||||
template:
|
|
||||||
src: files/nginx.conf
|
|
||||||
dest: /etc/nginx/nginx.conf
|
|
||||||
validate: nginx -t -c %s
|
|
||||||
mode: "0644"
|
|
||||||
become: true
|
|
||||||
notify: reload nginx
|
|
||||||
|
|
||||||
- name: Copy config files
|
- name: Copy config files
|
||||||
template:
|
template:
|
||||||
src: "{{ item }}"
|
src: "{{ item }}"
|
||||||
|
@ -61,6 +52,14 @@
|
||||||
become: true
|
become: true
|
||||||
notify: reload nginx
|
notify: reload nginx
|
||||||
|
|
||||||
|
- name: Install config
|
||||||
|
template:
|
||||||
|
src: files/nginx.conf
|
||||||
|
dest: /etc/nginx/nginx.conf
|
||||||
|
mode: "0644"
|
||||||
|
become: true
|
||||||
|
notify: reload nginx
|
||||||
|
|
||||||
- name: Install HTTPS redirect
|
- name: Install HTTPS redirect
|
||||||
template:
|
template:
|
||||||
src: files/nginx-https-redirect.conf
|
src: files/nginx-https-redirect.conf
|
||||||
|
|
Loading…
Reference in a new issue