🧱: move letsencrypt dir from /srv/http to /var/www
All checks were successful
ansible-lint / lint-everything (push) Successful in 5s
All checks were successful
ansible-lint / lint-everything (push) Successful in 5s
This commit is contained in:
@@ -33,17 +33,9 @@
|
|||||||
- {src: proxy_params.j2, dest: /etc/nginx/proxy_params}
|
- {src: proxy_params.j2, dest: /etc/nginx/proxy_params}
|
||||||
- {src: default.j2, dest: /etc/nginx/sites-available/default}
|
- {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
|
- name: Create letsencrypt dir
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: /srv/http/common/letsencrypt
|
path: "{{ nginx_letsencrypt_dir }}"
|
||||||
owner: root
|
owner: root
|
||||||
group: www-data
|
group: www-data
|
||||||
mode: 'u+rwx,g+rs,o-rwx'
|
mode: 'u+rwx,g+rs,o-rwx'
|
||||||
|
@@ -16,7 +16,7 @@ server {
|
|||||||
listen [::]:80 default_server;
|
listen [::]:80 default_server;
|
||||||
|
|
||||||
location /.well-known/acme-challenge {
|
location /.well-known/acme-challenge {
|
||||||
root /srv/http/common/letsencrypt/;
|
root {{ nginx_letsencrypt_dir }};
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
|
2
roles/nginx/vars/main.yml
Normal file
2
roles/nginx/vars/main.yml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
---
|
||||||
|
nginx_letsencrypt_dir: /var/www/common/letsencrypt
|
Reference in New Issue
Block a user