mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-25 06:10:22 -07:00
VMware: Use environment variable for connection (#37726)
This fix adds environment variables for connection in vmware_* modules. Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
parent
1d6bc094cf
commit
0ae7a0e88c
3 changed files with 207 additions and 44 deletions
|
@ -1,19 +1,6 @@
|
|||
# (c) 2016, Charles Paul <cpaul@ansible.com>
|
||||
#
|
||||
# This file is part of Ansible
|
||||
#
|
||||
# Ansible is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# Ansible is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||
# Copyright: (c) 2016, Charles Paul <cpaul@ansible.com>
|
||||
# Copyright: (c) 2018, Ansible Project
|
||||
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||
|
||||
|
||||
class ModuleDocFragment(object):
|
||||
|
@ -21,29 +8,38 @@ class ModuleDocFragment(object):
|
|||
DOCUMENTATION = '''
|
||||
options:
|
||||
hostname:
|
||||
description:
|
||||
- The hostname or IP address of the vSphere vCenter.
|
||||
required: True
|
||||
description:
|
||||
- The hostname or IP address of the vSphere vCenter.
|
||||
- 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.
|
||||
required: False
|
||||
username:
|
||||
description:
|
||||
- The username of the vSphere vCenter.
|
||||
required: True
|
||||
aliases: ['user', 'admin']
|
||||
description:
|
||||
- The username of the vSphere vCenter.
|
||||
- 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.
|
||||
required: False
|
||||
aliases: ['user', 'admin']
|
||||
password:
|
||||
description:
|
||||
- The password of the vSphere vCenter.
|
||||
required: True
|
||||
aliases: ['pass', 'pwd']
|
||||
description:
|
||||
- The password of the vSphere vCenter.
|
||||
- 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.
|
||||
required: False
|
||||
aliases: ['pass', 'pwd']
|
||||
validate_certs:
|
||||
description:
|
||||
- Allows connection when SSL certificates are not valid. Set to
|
||||
false when certificates are not trusted.
|
||||
default: 'True'
|
||||
type: bool
|
||||
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.
|
||||
default: 'True'
|
||||
type: bool
|
||||
port:
|
||||
description:
|
||||
- The port number of the vSphere vCenter or ESXi server.
|
||||
required: False
|
||||
default: 443
|
||||
version_added: 2.5
|
||||
description:
|
||||
- The port number of the vSphere vCenter or ESXi 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.
|
||||
required: False
|
||||
default: 443
|
||||
version_added: 2.5
|
||||
'''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue