adding dnf to iscsi_client
This commit is contained in:
parent
b120cb0348
commit
c4cc210a8b
1 changed files with 11 additions and 1 deletions
|
@ -3,13 +3,23 @@
|
|||
# This task sets up iscsid and mpathd on a machine.
|
||||
#
|
||||
#
|
||||
- name: install packages needed for iscsi_client
|
||||
- name: install packages needed for iscsi_client (yum)
|
||||
yum: state=present name={{ item }}
|
||||
with_items:
|
||||
- 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
|
||||
tags:
|
||||
- packages
|
||||
when: ansible_distribution_major_version|int > 21 and ansible_cmdline.ostree is not defined
|
||||
|
||||
- name: enable iscsi service
|
||||
service: state=running enabled=yes name=iscsi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue