mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-07-27 00:05:44 +02:00
Update to 2021-12-01 19:13
This commit is contained in:
6
roles/repo_mariadb/defaults/main.yml
Normal file
6
roles/repo_mariadb/defaults/main.yml
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
|
||||
# If you need newer MariaDB version, define the branch here
|
||||
# It'll use the yum repo from mariadb.org
|
||||
mysql_mariadb_version: default
|
||||
# mysql_mariadb_version: 10.3
|
8
roles/repo_mariadb/tasks/main.yml
Normal file
8
roles/repo_mariadb/tasks/main.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
---
|
||||
|
||||
# Here we use a template instead of yum_repository because
|
||||
# we might need to set module_hotfixes = true for el8. And yum_repository
|
||||
# doesn't support this setting
|
||||
- name: Configure MariaDB repo
|
||||
template: src=mariadb.repo.j2 dest=/etc/yum.repos.d/mariadb.repo
|
||||
tags: mysql,repo
|
12
roles/repo_mariadb/templates/mariadb.repo.j2
Normal file
12
roles/repo_mariadb/templates/mariadb.repo.j2
Normal file
@@ -0,0 +1,12 @@
|
||||
{% if mysql_mariadb_version != 'default' %}
|
||||
[mariadb]
|
||||
baseurl = http://yum.mariadb.org/{{ mysql_mariadb_version }}/centos$releasever-amd64
|
||||
gpgcheck = 1
|
||||
gpgkey = https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
|
||||
name = MariaDB
|
||||
{% if ansible_os_family == 'RedHat' and ansible_distribution_major_version is version('8', '>=') %}
|
||||
# Workaround a bug in dnf which would make the default module mask
|
||||
# packages from the MariaDB repo. See https://jira.mariadb.org/browse/MDEV-20673
|
||||
module_hotfixes = true
|
||||
{% endif %}
|
||||
{% endif %}
|
Reference in New Issue
Block a user