Files
@ 814be5def61d
Branch filter:
Location: majic-ansible-roles/roles/database_server/tasks/main.yml - annotation
814be5def61d
1.0 KiB
text/x-yaml
MAR-189: Added support for Debian 11 Bullseye to xmpp_server role:
- Roll-out LDAP client configuration since Bullseye does not come with
a stock one at /etc/ldap/ldap.conf that sets the trust anchor
correctly for validating LDAP server certificates.
- Drop the backports pinning in case of Bullseye (for now let's try to
keep the Buster and Bullseye at same versions for simplicity).
- Drop installation of Python apt bindings (no longer used).
- Tests for Buster and Bullseye need to be split-up a bit due to some
differences around backports etc.
- Roll-out LDAP client configuration since Bullseye does not come with
a stock one at /etc/ldap/ldap.conf that sets the trust anchor
correctly for validating LDAP server certificates.
- Drop the backports pinning in case of Bullseye (for now let's try to
keep the Buster and Bullseye at same versions for simplicity).
- Drop installation of Python apt bindings (no longer used).
- Tests for Buster and Bullseye need to be split-up a bit due to some
differences around backports etc.
09625826d96f 09625826d96f 09625826d96f 0ffaf31692ce a20ca43cd967 a20ca43cd967 a20ca43cd967 acd104ed9b5e 91b633aba998 09625826d96f 09625826d96f 0ffaf31692ce 0ffaf31692ce 0ffaf31692ce 946da6e35339 09625826d96f e9c5e116996a 30d5b3fa5b93 30d5b3fa5b93 30d5b3fa5b93 30d5b3fa5b93 30d5b3fa5b93 30d5b3fa5b93 e9c5e116996a 19b15357124a 0bc967a67750 0bc967a67750 0bc967a67750 0bc967a67750 0bc967a67750 0ffaf31692ce 0ffaf31692ce 0ffaf31692ce e9c5e116996a 7387caca37f3 7387caca37f3 7387caca37f3 fcf5abdd3ad5 7387caca37f3 18f93a9a8b05 | ---
- name: Install MariaDB
apt:
name:
- mariadb-client
- mariadb-server
- python3-pymysql
state: present
- name: Enable and start MariaDB
service:
name: mysql
state: started
enabled: true
- name: Set UTF-8 encoding as default for MariaDB
copy:
src: "utf8.cnf"
dest: "/etc/mysql/mariadb.conf.d/90-utf8.cnf"
owner: root
group: root
mode: 0644
register: mariadb_utf8_configuration
- name: Restart MariaDB in order to use UTF-8 as default character set # noqa 503
# [503] Tasks that run when changed should likely be handlers
# UTF-8 configuration must be applied immediatelly in order to ensure that
# subsequent tasks that create databases will end-up with correct (UTF-8)
# encoding. Otherwise they will be created using default latin1.
service:
name: mysql
state: restarted
when: mariadb_utf8_configuration.changed
- name: Explicitly run all handlers
include: ../handlers/main.yml
when: "run_handlers | default(False) | bool()"
tags:
- handlers
|