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)
|
- name: install packages needed for iscsi_client (yum)
|
||||||
package: state=present name={{ item }}
|
package:
|
||||||
with_items:
|
state: present
|
||||||
- iscsi-initiator-utils
|
name:
|
||||||
- device-mapper-multipath
|
- iscsi-initiator-utils
|
||||||
|
- device-mapper-multipath
|
||||||
tags:
|
tags:
|
||||||
- packages
|
- packages
|
||||||
when: ansible_distribution_major_version|int < 22
|
when: ansible_distribution_major_version|int < 22
|
||||||
|
|
||||||
- name: install packages needed for iscsi_client (dnf)
|
- name: install packages needed for iscsi_client (dnf)
|
||||||
dnf: state=present name={{ item }}
|
package:
|
||||||
with_items:
|
state: present
|
||||||
- iscsi-initiator-utils
|
name:
|
||||||
- device-mapper-multipath
|
- iscsi-initiator-utils
|
||||||
|
- device-mapper-multipath
|
||||||
tags:
|
tags:
|
||||||
- packages
|
- packages
|
||||||
when: ansible_distribution_major_version|int > 21 and ansible_cmdline.ostree is not defined
|
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