🧱: move letsencrypt dir from /srv/http to /var/www
All checks were successful
ansible-lint / lint-everything (push) Successful in 5s

This commit is contained in:
VC
2025-03-09 08:28:33 +01:00
parent 4ef3cd267e
commit 9c36560f11
3 changed files with 4 additions and 10 deletions

View File

@@ -33,17 +33,9 @@
- {src: proxy_params.j2, dest: /etc/nginx/proxy_params}
- {src: default.j2, dest: /etc/nginx/sites-available/default}
- name: Create base dir
ansible.builtin.file:
path: /srv/http
owner: root
group: www-data
mode: 'u+rwx,g+rs,o-rwx'
state: directory
- name: Create letsencrypt dir
ansible.builtin.file:
path: /srv/http/common/letsencrypt
path: "{{ nginx_letsencrypt_dir }}"
owner: root
group: www-data
mode: 'u+rwx,g+rs,o-rwx'

View File

@@ -16,7 +16,7 @@ server {
listen [::]:80 default_server;
location /.well-known/acme-challenge {
root /srv/http/common/letsencrypt/;
root {{ nginx_letsencrypt_dir }};
}
location / {

View File

@@ -0,0 +1,2 @@
---
nginx_letsencrypt_dir: /var/www/common/letsencrypt