mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
iscsi_client: dnf -> package, with_item changes
This commit is contained in:
@@ -4,19 +4,21 @@
|
||||
#
|
||||
#
|
||||
- name: install packages needed for iscsi_client (yum)
|
||||
package: state=present name={{ item }}
|
||||
with_items:
|
||||
- iscsi-initiator-utils
|
||||
- device-mapper-multipath
|
||||
package:
|
||||
state: present
|
||||
name:
|
||||
- iscsi-initiator-utils
|
||||
- device-mapper-multipath
|
||||
tags:
|
||||
- packages
|
||||
when: ansible_distribution_major_version|int < 22
|
||||
|
||||
- name: install packages needed for iscsi_client (dnf)
|
||||
dnf: state=present name={{ item }}
|
||||
with_items:
|
||||
- iscsi-initiator-utils
|
||||
- device-mapper-multipath
|
||||
package:
|
||||
state: present
|
||||
name:
|
||||
- iscsi-initiator-utils
|
||||
- device-mapper-multipath
|
||||
tags:
|
||||
- packages
|
||||
when: ansible_distribution_major_version|int > 21 and ansible_cmdline.ostree is not defined
|
||||
|
||||
Reference in New Issue
Block a user