mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
mariadb_server: dnf -> package, with_item changes
This commit is contained in:
@@ -1,13 +1,15 @@
|
||||
- name: ensure packages required for mariadb are installed
|
||||
package: name={{ item }} state=present
|
||||
with_items:
|
||||
package:
|
||||
state: present
|
||||
name:
|
||||
- mariadb-server
|
||||
- MySQL-python
|
||||
when: ansible_distribution_major_version|int < 22
|
||||
|
||||
- name: ensure packages required for mariadb are installed
|
||||
dnf: name={{ item }} state=present
|
||||
with_items:
|
||||
package:
|
||||
state: present
|
||||
name:
|
||||
- mariadb-server
|
||||
- MySQL-python
|
||||
when: ansible_distribution_major_version|int > 21 and ansible_cmdline.ostree is not defined
|
||||
|
||||
Reference in New Issue
Block a user