File tree Expand file tree Collapse file tree 3 files changed +25
-4
lines changed Expand file tree Collapse file tree 3 files changed +25
-4
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- - name : Install the latest version of MariaDB
3
- command : " dnf install python3-mysqlclient mariadb-server -y"
4
- - name : Enable and start MariaDB service
5
- command : systemctl enable --now mariadb
2
+ - name : Create MariaDB 11.4 repo file
3
+ template :
4
+ src : " {{ mariadb_repo_src }}"
5
+ dest : " {{ mariadb_repo_dest }}"
6
+ owner : " {{ config.system.username }}"
7
+ group : " {{ config.system.username }}"
8
+ - name : Install MariaDB 11.4
9
+ ansible.builtin.dnf :
10
+ name :
11
+ - python3-mysqlclient
12
+ - mariadb-server
13
+ state : present
14
+ - name : Enable and start MariaDB
15
+ ansible.builtin.service :
16
+ name : mariadb
17
+ enabled : true
18
+ state : started
6
19
- name : Set MariaDB root password
7
20
mysql_user :
8
21
login_user : root
Original file line number Diff line number Diff line change
1
+ [mariadb]
2
+ name = MariaDB
3
+ baseurl = https://rpm.mariadb.org/11.4/almalinux/$releasever/$basearch
4
+ gpgkey= https://rpm.mariadb.org/RPM-GPG-KEY-MariaDB
5
+ gpgcheck=1
Original file line number Diff line number Diff line change
1
+ ---
2
+ mariadb_repo_src : MariaDB.repo.j2
3
+ mariadb_repo_dest : /etc/yum.repos.d/MariaDB.repo
You can’t perform that action at this time.
0 commit comments