Compare commits

..

2 Commits

Author SHA1 Message Date
VC
a1bc985eb7 🚨: fix linting errors on web_hostname_block vars
Some checks failed
ansible-lint / lint-everything (push) Failing after 1m17s
2025-04-05 08:15:06 +02:00
VC
e9ec827798 : move phpbb to app dir 2025-04-05 08:15:04 +02:00
6 changed files with 38 additions and 2 deletions

View File

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.9 KiB

View File

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

View File

@@ -0,0 +1,13 @@
---
- 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: ansible.builtin.template:
src: config.php.j2 src: config.php.j2
dest: "{{ phpbb_app_home }}/config.php" dest: "{{ phpbb_app_home }}/config.php"
owner: www-data owner: root
group: www-data group: www-data
mode: "0o640" mode: "0o640"

View File

@@ -1,7 +1,27 @@
--- ---
- 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 - name: Replace logo
ansible.builtin.lineinfile: ansible.builtin.lineinfile:
path: "{{ phpbb_app_home }}/styles/prosilver/theme/colours.css" path: "{{ phpbb_app_home }}/styles/prosilver/theme/colours.css"
search_string: "background-image: url(\"./images/site_logo.svg\");" search_string: "background-image: url(\"./images/site_logo.svg\");"
line: " background-image: url(\"./images/ndfr_casual.png\");" 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;"