♻: put retrodojo in www-data format
All checks were successful
ansible-lint / lint-everything (push) Successful in 1m22s

This commit is contained in:
VC
2025-04-07 08:47:38 +02:00
parent dd89ef99f6
commit cfdc683d12
3 changed files with 10 additions and 2 deletions

View File

@@ -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/(.*)$ {

View File

@@ -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"

View File

@@ -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 }}"