# customizing mariadb role

**URL:** https://discourse.roots.io/t/customizing-mariadb-role/30019
**Category:** trellis
**Created:** 2025-10-28T13:32:51Z
**Posts:** 2

## Post 1 by @fp-pwa — 2025-10-28T13:32:51Z

Hi there,

I would like to customize some values that are stored in  
`roles/mariadb/templates/50-server.cnf.j2`

From what I can see, some values can be but not all of them like `max_allowed_packet`.  
There are several ways to do it but I am wondering what would be the best way in order to keep trellis logic.

I also would like to add some values related to mysql replication.

Regards

---

## Post 2 by @TangRufus — 2026-02-22T08:01:56Z

The good way is to turn it into an ansible variable.  
The best way is to do that in a roots/trellis pull request.
