mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00:00
VMware: vcenter_license fixes (#50794)
* Updated document fragment * Used PyVmomi Helper class * Added check for vcenter server Fixes: #50752 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
# Copyright: (c) 2016, Charles Paul <cpaul@ansible.com>
|
||||
# Copyright: (c) 2018, Ansible Project
|
||||
# Copyright: (c) 2019, Abhijeet Kasurde <akasurde@redhat.com>
|
||||
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||
|
||||
|
||||
@@ -44,3 +45,44 @@ options:
|
||||
default: 443
|
||||
version_added: 2.5
|
||||
'''
|
||||
|
||||
# This doc fragment is specific to vcenter modules like vcenter_license
|
||||
VCENTER_DOCUMENTATION = '''
|
||||
options:
|
||||
hostname:
|
||||
description:
|
||||
- The hostname or IP address of the vSphere vCenter server.
|
||||
- If the value is not specified in the task, the value of environment variable C(VMWARE_HOST) will be used instead.
|
||||
- Environment variable supported added in version 2.6.
|
||||
type: str
|
||||
username:
|
||||
description:
|
||||
- The username of the vSphere vCenter server.
|
||||
- If the value is not specified in the task, the value of environment variable C(VMWARE_USER) will be used instead.
|
||||
- Environment variable supported added in version 2.6.
|
||||
type: str
|
||||
aliases: [ admin, user ]
|
||||
password:
|
||||
description:
|
||||
- The password of the vSphere vCenter server.
|
||||
- If the value is not specified in the task, the value of environment variable C(VMWARE_PASSWORD) will be used instead.
|
||||
- Environment variable supported added in version 2.6.
|
||||
type: str
|
||||
aliases: [ pass, pwd ]
|
||||
validate_certs:
|
||||
description:
|
||||
- Allows connection when SSL certificates are not valid. Set to C(false) when certificates are not trusted.
|
||||
- If the value is not specified in the task, the value of environment variable C(VMWARE_VALIDATE_CERTS) will be used instead.
|
||||
- Environment variable supported added in version 2.6.
|
||||
- If set to C(yes), please make sure Python >= 2.7.9 is installed on the given machine.
|
||||
type: bool
|
||||
default: 'yes'
|
||||
port:
|
||||
description:
|
||||
- The port number of the vSphere vCenter server.
|
||||
- If the value is not specified in the task, the value of environment variable C(VMWARE_PORT) will be used instead.
|
||||
- Environment variable supported added in version 2.6.
|
||||
type: int
|
||||
default: 443
|
||||
version_added: 2.5
|
||||
'''
|
||||
|
||||
Reference in New Issue
Block a user