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
|
@ -32,8 +32,13 @@
|
|||
tags:
|
||||
- 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
|
||||
tags:
|
||||
- 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