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:
parent
89f91a9642
commit
d9cdb2583d
1 changed files with 14 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue