Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion wsl/os/almalinux9/roles/mariadb/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
---
- name: Create MariaDB 10.6 repo file
template:
src: "{{ mariadb_repo_src }}"
dest: "{{ mariadb_repo_dest }}"
owner: "{{ config.system.username }}"
group: "{{ config.system.username }}"
- name: Install MariaDB 10.6
command: "dnf install python3-mysqlclient https://mirror.mariadb.org/yum/10.6.11/rhel9-amd64/rpms/MariaDB-server-10.6.11-1.el9.x86_64.rpm https://mirror.mariadb.org/yum/10.6.11/rhel9-amd64/rpms/MariaDB-client-10.6.11-1.el9.x86_64.rpm https://mirror.mariadb.org/yum/10.6.11/rhel9-amd64/rpms/MariaDB-common-10.6.11-1.el9.x86_64.rpm https://mirror.mariadb.org/yum/10.6.11/rhel9-amd64/rpms/MariaDB-shared-10.6.11-1.el9.x86_64.rpm https://mirror.mariadb.org/yum/10.6.11/rhel9-amd64/rpms/galera-4-26.4.13-1.el9.x86_64.rpm -y"
command: "dnf install python3-mysqlclient MariaDB-server MariaDB-client -y"
- name: Enable and start MariaDB service
command: systemctl enable --now mariadb
- name: Set MariaDB root password
Expand Down
7 changes: 7 additions & 0 deletions wsl/os/almalinux9/roles/mariadb/templates/MariaDB.repo.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# MariaDB 10.6 RedHat repository list - created 2023-01-10 20:09 UTC
# https://mariadb.org/download/
[mariadb]
name = MariaDB
baseurl = https://ftp.bme.hu/pub/mirrors/mariadb/yum/10.6/rhel9-amd64
gpgkey=https://ftp.bme.hu/pub/mirrors/mariadb/yum/RPM-GPG-KEY-MariaDB
gpgcheck=1
3 changes: 3 additions & 0 deletions wsl/os/almalinux9/roles/mariadb/vars/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
mariadb_repo_src: MariaDB.repo.j2
mariadb_repo_dest: /etc/yum.repos.d/MariaDB.repo