Try this conditional

This commit is contained in:
Kevin Fenzi 2013-10-31 17:04:36 +00:00
parent 88141db150
commit 1320997020

View file

@ -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 }}"