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