mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
adding dnf support to mariadb_server
This commit is contained in:
@@ -1,8 +1,16 @@
|
||||
- name: ensure packages required for mariadb are installed
|
||||
action: yum name={{ item }} state=latest
|
||||
yum: name={{ item }} state=latest enablerepo={{ extra_enablerepos }}
|
||||
with_items:
|
||||
- mariadb-server
|
||||
- MySQL-python
|
||||
when: ansible_distribution_major_version|int < 22
|
||||
|
||||
- name: ensure packages required for mariadb are installed
|
||||
dnf: name={{ item }} state=latest enablerepo={{ extra_enablerepos }}
|
||||
with_items:
|
||||
- mariadb-server
|
||||
- MySQL-python
|
||||
when: ansible_distribution_major_version|int > 21 and ansible_cmdline.ostree is not defined
|
||||
|
||||
- name: copy my.cnf
|
||||
copy: src={{ item }} dest=/etc/my.cnf owner=root group=root mode=0644
|
||||
|
||||
Reference in New Issue
Block a user