community.vmware.vmware_vc_infraprofile_info – List and Export VMware vCenter infra profile configs.¶
Note
This plugin is part of the community.vmware collection (version 1.9.0).
To install it use: ansible-galaxy collection install community.vmware
.
To use it in a playbook, specify: community.vmware.vmware_vc_infraprofile_info
.
New in version 1.0.0: of community.vmware
Synopsis¶
Module to manage VMware vCenter infra profile configs.
vCenter infra profile Library feature is introduced in vSphere 7.0 version, so this module is not supported in the earlier versions of vSphere.
All variables and VMware object names are case sensitive.
Requirements¶
The below requirements are needed on the host that executes this module.
python >= 2.7
PyVmomi
vSphere Automation SDK
Parameters¶
Examples¶
- name: Get information about VC infraprofile
vmware_vc_infraprofile_info:
hostname: '{{ vcenter_hostname }}'
username: '{{ vcenter_username }}'
password: '{{ vcenter_password }}'
delegate_to: localhost
- name: export vCenter appliance infra profile config
vmware_vc_infraprofile_info:
hostname: '{{ vcenter_hostname }}'
username: '{{ vcenter_username }}'
password: '{{ vcenter_password }}'
api: "export"
profiles: "ApplianceManagement"
delegate_to: localhost
- name: validate vCenter appliance infra profile config
vmware_vc_infraprofile_info:
hostname: '{{ vcenter_hostname }}'
username: '{{ vcenter_username }}'
password: '{{ vcenter_password }}'
api: "validate"
profiles: "ApplianceManagement"
config_path: "export.json"
- name: import vCenter appliance infra profile config
vmware_vc_infraprofile_info:
hostname: '{{ vcenter_hostname }}'
username: '{{ vcenter_username }}'
password: '{{ vcenter_password }}'
api: "import"
profiles: "ApplianceManagement"
config_path: "import.json"
delegate_to: localhost
Return Values¶
Common return values are documented here, the following are the fields unique to this module:
Authors¶
Naveenkumar G P (@ngp)