Add other netapp iscsi for buildvmhosts only.
This commit is contained in:
parent
4c9c64032e
commit
88141db150
2 changed files with 8 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
# iscsi initiator for netapp iscsi volume
|
# iscsi initiator for netapp iscsi volume
|
||||||
netapp_iscsi_name: iqn.1992-08.com.netapp:sn.1573980325:vf.6fb258f4-106f-11e2-ae29-00a098161d90
|
netapp_nfs01_iscsi_name: iqn.1992-08.com.netapp:sn.1573980325:vf.f88732f4-106e-11e2-bc86-00a098162a28
|
||||||
# iscsi portal for netapp iscsi volume
|
# iscsi portal for netapp iscsi volume
|
||||||
netapp_iscsi_portal: 10.5.88.36
|
netapp_nfs01_iscsi_portal: 10.5.88.36
|
||||||
|
|
|
@ -32,8 +32,13 @@
|
||||||
tags:
|
tags:
|
||||||
- config
|
- config
|
||||||
|
|
||||||
- name: run iscsiadm command for initial connect
|
- name: run iscsiadm command for initial connect to vtap-fedora-iscsi01
|
||||||
command: creates=/var/lib/iscsi/nodes/{{ netapp_iscsi_name }}/{{ netapp_iscsi_portal }},3260 /sbin/iscsiadm --mode node --targetname --portal {{ netapp_iscsi_portal }} -o new ; /sbin/iscsiadm --mode node --targetname {{ netapp_iscsi_name }} --portal {{ netapp_iscsi_portal }} --login
|
command: creates=/var/lib/iscsi/nodes/{{ netapp_iscsi_name }}/{{ netapp_iscsi_portal }},3260 /sbin/iscsiadm --mode node --targetname --portal {{ netapp_iscsi_portal }} -o new ; /sbin/iscsiadm --mode node --targetname {{ netapp_iscsi_name }} --portal {{ netapp_iscsi_portal }} --login
|
||||||
tags:
|
tags:
|
||||||
- config
|
- config
|
||||||
|
|
||||||
|
- name: run iscsiadm command for initial connect to vtap-fedora-nfs01
|
||||||
|
command: creates=/var/lib/iscsi/nodes/{{ netapp_nfs01_iscsi_name }}/{{ netapp_nfs01_iscsi_portal }},3260 /sbin/iscsiadm --mode node --targetname --portal {{ netapp_nfs01_iscsi_portal }} -o new ; /sbin/iscsiadm --mode node --targetname {{ netapp_nfs01_iscsi_name }} --portal {{ netapp_nfs01_iscsi_portal }} --login
|
||||||
|
tags:
|
||||||
|
- config
|
||||||
|
only_if: "'${inventory_hostname}'.startswith('buildvmhost')"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue