♻: 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 /etc/x509/nintendojofr.com/fullchain.cer;
|
||||||
ssl_certificate_key /etc/x509/nintendojofr.com/nintendojofr.com.key;
|
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;
|
index index.html index.htm index.php;
|
||||||
|
|
||||||
location ~ ^/forum/(.*)$ {
|
location ~ ^/forum/(.*)$ {
|
||||||
|
@@ -3,6 +3,14 @@
|
|||||||
- name: Init db
|
- name: Init db
|
||||||
ansible.builtin.include_tasks: db.yml
|
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
|
- name: Put program file in place
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: "index.php.j2"
|
src: "index.php.j2"
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
retrodojo_access_url: "{{ web_hostname | selectattr('type', 'defined') | selectattr('type', '==', 'retrodojo') | map(attribute='host') | first }}"
|
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