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
|
||||
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
|
||||
template:
|
||||
src: "{{ item }}"
|
||||
|
@ -61,6 +52,14 @@
|
|||
become: true
|
||||
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
|
||||
template:
|
||||
src: files/nginx-https-redirect.conf
|
||||
|
|
Loading…
Reference in a new issue