Add include files before main nginx config

This commit is contained in:
Jake Howard 2023-12-21 14:58:04 +00:00
parent ef432642dd
commit 80a770f399
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -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