Compare commits

..

2 Commits

Author SHA1 Message Date
VC
f6ad6af695 🚨: fix linting errors on web_hostname_block vars
All checks were successful
ansible-lint / lint-everything (push) Successful in 1m24s
2025-04-04 20:50:39 +02:00
VC
bcc1551244 : move phpbb to app dir
All checks were successful
ansible-lint / lint-everything (push) Successful in 1m27s
2025-04-04 20:46:58 +02:00
6 changed files with 2 additions and 38 deletions

View File

@@ -1,6 +1,6 @@
server {
{% include './templates/header.conf.j2' %}
root /var/www/forum.nintendojo.fr/;
root /srv/http/forum.nintendojo.fr/;
index index.html index.htm index.php;
client_max_body_size 10M;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.9 KiB

View File

@@ -22,6 +22,3 @@
- name: Custom part
ansible.builtin.include_tasks: phpbb_customs.yml
- name: Migrate db
ansible.builtin.include_tasks: migrate_db.yml

View File

@@ -1,13 +0,0 @@
---
- name: Migrate db
become_user: www-data
ansible.builtin.command:
cmd: "/usr/bin/php bin/phpbbcli.php db:migrate"
chdir: "{{ phpbb_app_home }}"
changed_when: false
- name: Remove install directory
ansible.builtin.file:
dest: "{{ phpbb_app_home }}/install"
state: absent

View File

@@ -72,6 +72,6 @@
ansible.builtin.template:
src: config.php.j2
dest: "{{ phpbb_app_home }}/config.php"
owner: root
owner: www-data
group: www-data
mode: "0o640"

View File

@@ -1,27 +1,7 @@
---
- name: Put logo file
ansible.builtin.copy:
src: files/ndfr_casual.png
dest: "{{ phpbb_app_home }}/styles/prosilver/theme/images/ndfr_casual.png"
owner: root
group: www-data
mode: "0o640"
- name: Replace logo
ansible.builtin.lineinfile:
path: "{{ phpbb_app_home }}/styles/prosilver/theme/colours.css"
search_string: "background-image: url(\"./images/site_logo.svg\");"
line: " background-image: url(\"./images/ndfr_casual.png\");"
- name: Stretch logo (width)
ansible.builtin.lineinfile:
path: "{{ phpbb_app_home }}/styles/prosilver/theme/common.css"
search_string: "width: 149px;"
line: " width: 200px;"
- name: Stretch logo (height)
ansible.builtin.lineinfile:
path: "{{ phpbb_app_home }}/styles/prosilver/theme/common.css"
search_string: "height: 52px;"
line: " height: 80px;"