The 16.0.0 entry pkgmgr wrote on top of CHANGELOG.md uses "-" bullets while every older entry uses "*". MD004's default "consistent" style takes the marker of the first list in a file, so lint-markdown reported 400 MD004 findings in CHANGELOG.md and the pre-push gate refused the release push. MD004 is now pinned to "dash", the marker pkgmgr and the changelog skill write, and make autoformat (markdownlint-cli2 --fix) converted the lists of the 72 files that still used "*". Only list markers changed. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2.1 KiB
defaults/
This directory contains default variable definition files for the svc-db-mariadb Ansible role. It centralizes all configurable values related to MariaDB deployment and can be adjusted without modifying task logic.
files and their purpose
main.yml
Defines default values for how the MariaDB database should be created.
-
database_encoding(string):-
Default:
"utf8mb4" -
Reasoning:
- Full Unicode support:
utf8mb4is the only MySQL/MariaDB character set that fully implements 4‑byte UTF‑8, allowing storage of emojis, supplementary symbols, and all global scripts without data loss. - Future‑proof: Modern applications and standards have converged on UTF‑8; using
utf8mb4avoids migration challenges later. - Performance trade‑off: While slightly more storage might be used compared to
latin1, the universality ofutf8mb4outweighs the cost for most deployments.
- Full Unicode support:
-
-
database_collation(string):-
Default:
"utf8mb4_unicode_ci" -
Reasoning:
- Accurate sorting & comparison: This collation uses full Unicode algorithm rules, ensuring linguistically correct comparisons across many languages.
- Case‑insensitive (
ci): Most web apps expect case‑insensitive matching for usernames, emails, and search queries, improving usability. - Neutral choice: Unlike language‑specific collations,
unicode_ciworks robustly in multilingual contexts without bias.
-
Tip: If you have a legacy application requiring a different charset or collation (e.g., for backward compatibility with existing data), simply override
database_encodinganddatabase_collationin your playbook-level variables.
Overriding default variables
To customize any of these values without editing role defaults:
-
Create or update a playbook-level vars file (e.g.
group_vars/all/svc-db-mariadb.yml). -
Set the desired values, for example:
database_encoding: "latin1" database_collation: "latin1_swedish_ci" -
Run your playbook. Ansible’s variable precedence ensures your overrides take effect.