Solved Snipe-IT und MariaDB Bugs

This commit is contained in:
Kevin Veen-Birkenbach 2025-06-01 12:16:11 +02:00
parent 96e2a0033f
commit 4f0962b4a2
No known key found for this signature in database
GPG Key ID: 44D8F11FD62F878E
2 changed files with 17 additions and 6 deletions

View File

@ -69,11 +69,13 @@
login_host: 127.0.0.1
login_port: "{{database_port}}"
- name: Grant database privileges
ansible.builtin.shell:
cmd: "docker exec {{applications.mariadb.hostname }} mariadb -u root -p{{ applications.mariadb.credentials.root_password }} -e \"GRANT ALL PRIVILEGES ON {{database_name}}.* TO '{{database_username}}'@'%';\""
args:
executable: /bin/bash
# Deactivated due to https://chatgpt.com/share/683ba14b-0e74-800f-9ad1-a8979bc77093
# @todo Remove if this works fine in the future.
#- name: Grant database privileges
# ansible.builtin.shell:
# cmd: "docker exec {{applications.mariadb.hostname }} mariadb -u root -p{{ applications.mariadb.credentials.root_password }} -e \"GRANT ALL PRIVILEGES ON `{{database_name}}`.* TO '{{database_username}}'@'%';\""
# args:
# executable: /bin/bash
- name: run the docker_mariadb tasks once
set_fact:

View File

@ -1,9 +1,18 @@
version: "latest"
features:
matomo: true
css: true
css: false
portfolio_iframe: false
central_database: true
domains:
canonical:
- "inventory.{{ primary_domain }}"
csp:
flags:
script-src:
unsafe-inline: true
style-src:
unsafe-inline: true
whitelist:
font-src:
- "data:"