diff options
Diffstat (limited to 'roles/http')
| -rw-r--r-- | roles/http/tasks/main.yml | 5 | ||||
| -rw-r--r-- | roles/http/templates/nginx/joeac.net.conf | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/roles/http/tasks/main.yml b/roles/http/tasks/main.yml index 9d2ae22..4907c55 100644 --- a/roles/http/tasks/main.yml +++ b/roles/http/tasks/main.yml @@ -40,6 +40,11 @@ src: nginx/joeac.net.conf dest: /etc/nginx/http.d/joeac.net.conf +- name: Create joeac.net locations config directory + ansible.builtin.file: + path: /etc/nginx/http.d/joeac.net.locations.d + state: directory + - name: Restart nginx service if config changed when: joeacnet_nginx_site_config is changed ansible.builtin.service: diff --git a/roles/http/templates/nginx/joeac.net.conf b/roles/http/templates/nginx/joeac.net.conf index 9f28fee..0cf7a1f 100644 --- a/roles/http/templates/nginx/joeac.net.conf +++ b/roles/http/templates/nginx/joeac.net.conf @@ -21,4 +21,6 @@ server { location ~ /\.sqlite { deny all; } + + include /etc/nginx/http.d/joeac.net.locations.d/*.conf; } |
