mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
mariadb: turns out we do need python bindings, but they are called python3-PyMySQL on rhel8
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
@@ -5,6 +5,20 @@
|
||||
- mariadb-server
|
||||
when: ansible_cmdline.ostree is not defined
|
||||
|
||||
- name: ensure packages required for mariadb are installed (el7)
|
||||
package:
|
||||
state: present
|
||||
name:
|
||||
- MySQL-python
|
||||
when: ansible_distribution_major_version|int < 8
|
||||
|
||||
- name: ensure packages required for mariadb are installed (el8)
|
||||
package:
|
||||
state: present
|
||||
name:
|
||||
- python3-PyMySQL
|
||||
when: ansible_distribution_major_version|int > 7
|
||||
|
||||
- name: copy my.cnf
|
||||
copy: src={{ item }} dest=/etc/my.cnf owner=root group=root mode=0644
|
||||
with_first_found:
|
||||
|
||||
Reference in New Issue
Block a user