Try this conditional
This commit is contained in:
parent
88141db150
commit
1320997020
1 changed files with 1 additions and 1 deletions
|
@ -41,4 +41,4 @@
|
|||
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')"
|
||||
when: 'buildvmhost' in "{{ inventory_hostname }}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue