iscsi_client: dnf -> package, with_item changes
This commit is contained in:
parent
a713ec2e71
commit
b146286ce2
1 changed files with 10 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue