Merge pull request #1313 from dagwieers/vsphere_facts-cleanup

vsphere_facts: Various cleanups in documentation
pull/1311/merge
Michael DeHaan 12 years ago
commit 1487b6a1bb

@ -47,11 +47,12 @@ options:
- The virtual server to gather facts for on the vSphere cluster. - The virtual server to gather facts for on the vSphere cluster.
required: true required: true
examples: examples:
- code: | - description: Task to gather facts from a vSphere cluster only if the system is a VMWare guest
local_action: vsphere_facts host=$esxserver login=$esxlogin password=$esxpassword guest=$inventory_hostname_short code: |
- local_action: vsphere_facts host=$esxserver login=$esxlogin password=$esxpassword guest=$inventory_hostname_short
only_if: "'$cmdb_hwmodel'.startswith('VMWare ') only_if: "'$cmdb_hwmodel'.startswith('VMWare ')
description: Task to gather facts from a vSphere cluster only if the system is a VMWare guest - description: Typical output of a vsphere_facts run on a guest
- code: code:
- hw_eth0: - hw_eth0:
- addresstype: "assigned" - addresstype: "assigned"
label: "Network adapter 1" label: "Network adapter 1"
@ -64,10 +65,9 @@ examples:
hw_name: "centos6" hw_name: "centos6"
hw_processor_count: 1 hw_processor_count: 1
hw_product_uuid: "ef50bac8-2845-40ff-81d9-675315501dac" hw_product_uuid: "ef50bac8-2845-40ff-81d9-675315501dac"
description: Typical output of a vsphere_facts run on a guest
notes: notes:
- This module ought to be run from a system that can access vSphere directly. - This module ought to be run from a system that can access vSphere directly.
Either by using C(local_action), or C(using delegate)_to. Either by using local_action, or using delegate_to.
''' '''
import sys import sys

Loading…
Cancel
Save