Files
fedora-infra_ansible/roles/iscsi_client/tasks/main.yml
Kevin Fenzi 97dab9dcaf iscsi_client: readd role, apply to power10 host and switch guests to use it
This re-adds a iscsi_client role we had in iad2 back in in rdu3.
When then apply it to bvmhost-p10-01 to login and use a iscsi lun from
the rdu3 netapp. We then move the buildvm-ppc64le vm's to use this iscsi
volume instead of local storage.

As we reinstall those builders they will use the iscsi volume.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2025-07-16 15:19:56 -07:00

34 lines
976 B
YAML

---
#
# This task sets up iscsid and mpathd on a machine.
#
#
- name: install packages needed for iscsi_client (dnf)
package:
state: present
name:
- iscsi-initiator-utils
- device-mapper-multipath
tags:
- packages
- name: enable multipathd service
service: state=started enabled=yes name=multipathd
tags:
- services
- name: setup multipath.conf file
copy: src=multipath.conf dest=/etc/multipath.conf
tags:
- config
- name: setup initiatorname.iscsi
template: src=initiatorname.iscsi.j2 dest=/etc/iscsi/initiatorname.iscsi
tags:
- config
- name: run iscsiadm command for initial connect to RDU3 netapp
command: creates=/var/lib/iscsi/nodes/{{ netapp_iscsi_name_rdu3 }}/{{ netapp_iscsi_portal_rdu3 }},3260 /sbin/iscsiadm --mode node --targetname --portal {{ netapp_iscsi_portal_rdu3 }} -o new ; /sbin/iscsiadm --mode node --targetname {{ netapp_iscsi_name_rdu3 }} --portal {{ netapp_iscsi_portal_rdu3 }} --login
tags:
- config