♻: put retrodojo in www-data format
All checks were successful
ansible-lint / lint-everything (push) Successful in 1m22s
All checks were successful
ansible-lint / lint-everything (push) Successful in 1m22s
This commit is contained in:
@@ -9,7 +9,7 @@ server {
|
||||
ssl_certificate /etc/x509/nintendojofr.com/fullchain.cer;
|
||||
ssl_certificate_key /etc/x509/nintendojofr.com/nintendojofr.com.key;
|
||||
|
||||
root /srv/http/www.nintendojofr.com/;
|
||||
root /var/www/www.nintendojofr.com/;
|
||||
index index.html index.htm index.php;
|
||||
|
||||
location ~ ^/forum/(.*)$ {
|
||||
|
@@ -3,6 +3,14 @@
|
||||
- name: Init db
|
||||
ansible.builtin.include_tasks: db.yml
|
||||
|
||||
- name: Create retrodojo directory
|
||||
ansible.builtin.file:
|
||||
state: directory
|
||||
path: "{{ retrodojo_home }}"
|
||||
owner: root
|
||||
group: www-data
|
||||
mode: "0o750"
|
||||
|
||||
- name: Put program file in place
|
||||
ansible.builtin.template:
|
||||
src: "index.php.j2"
|
||||
|
@@ -1,4 +1,4 @@
|
||||
---
|
||||
|
||||
retrodojo_access_url: "{{ web_hostname | selectattr('type', 'defined') | selectattr('type', '==', 'retrodojo') | map(attribute='host') | first }}"
|
||||
retrodojo_home: "/srv/http/{{ retrodojo_access_url }}"
|
||||
retrodojo_home: "/var/www/{{ retrodojo_access_url }}"
|
||||
|
Reference in New Issue
Block a user