Compare commits
2 Commits
f6ad6af695
...
a1bc985eb7
Author | SHA1 | Date | |
---|---|---|---|
![]() |
a1bc985eb7 | ||
![]() |
e9ec827798 |
@@ -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;
|
||||||
|
BIN
roles/phpbb/files/ndfr_casual.png
Normal file
BIN
roles/phpbb/files/ndfr_casual.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.9 KiB |
@@ -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
|
||||||
|
13
roles/phpbb/tasks/migrate_db.yml
Normal file
13
roles/phpbb/tasks/migrate_db.yml
Normal 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
|
@@ -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"
|
||||||
|
@@ -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;"
|
||||||
|
Reference in New Issue
Block a user