vmware.vmware_rest.appliance_infraprofile_configs module – Exports the desired profile specification.
Note
This module is part of the vmware.vmware_rest collection (version 2.2.0).
You might already have this collection installed if you are using the ansible
package.
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install vmware.vmware_rest
.
To use it in a playbook, specify: vmware.vmware_rest.appliance_infraprofile_configs
.
New in version 2.0.0: of vmware.vmware_rest
Requirements
The below requirements are needed on the host that executes this module.
vSphere 7.0.2 or greater
python >= 3.6
aiohttp
Parameters
Parameter |
Comments |
---|---|
Custom description provided by the user. If unset description will be empty. |
|
Encryption Key to encrypt/decrypt profiles. If unset encryption will not be used for the profile. |
|
Profiles to be exported/imported. If unset or empty, all profiles will be returned. When clients pass a value of this structure as a parameter, the field must contain the id of resources returned by vmware.vmware_rest.appliance_infraprofile_configs. |
|
Timeout settings for client session. The maximal number of seconds for the whole operation including connection establishment, request sending and response. The default value is 300s. |
|
Choices:
|
|
The hostname or IP address of the vSphere vCenter If the value is not specified in the task, the value of environment variable |
|
The vSphere vCenter password If the value is not specified in the task, the value of environment variable |
|
You can use this optional parameter to set the location of a log file. This file will be used to record the HTTP REST interaction. The file will be stored on the host that run the module. If the value is not specified in the task, the value of environment variable |
|
The vSphere vCenter username If the value is not specified in the task, the value of environment variable |
|
Allows connection when SSL certificates are not valid. Set to If the value is not specified in the task, the value of environment variable Choices:
|
Examples
- name: Export the ApplianceManagement profile
vmware.vmware_rest.appliance_infraprofile_configs:
state: export
profiles:
- ApplianceManagement
register: result
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
Export the ApplianceManagement profile Returned: On success Sample: “{\”action\”:\”RESTART_SERVICE\”,\”productName\”:\”VMware vCenter Server\”,\”version\”:\”7.0.3.00600\”,\”creationTime\”:\”2022-06-23T22:43:48+0000\”,\”profiles\”:{\”ApplianceManagement\”:{\”action\”:\”RESTART_SERVICE\”,\”actionOn\”:{\”SYSTEMD\”:[\”sendmail\”,\”rsyslog\”],\”VC_SERVICES\”:[\”applmgmt\”]},\”version\”:\”7.0\”,\”description\”:\”Appliance Mangment Service\”,\”config\”:{\”/etc/applmgmt/appliance/appliance.conf\”:{\”Is shell Enabled\”:true,\”Shell Expiration Time\”:9,\”TimeSync Mode (Host/NTP)\”:\”NTP\”},\”/etc/sysconfig/clock\”:{\”Time zone\”:\”\\\”UTC\\\”\”,\”UTC\”:\”1\”},\”/usr/bin/systemctl/sshd.service\”:{\”Enable SSH\”:\”true\”},\”/etc/ntp.conf\”:{\”Time servers\”:[\”time.google.com\”]},\”/etc/mail/sendmail.cf\”:{\”SMTP Port\”:null,\”Mail server\”:null},\”/etc/vmware-syslog/syslog.conf\”:{\”Port [2]\”:null,\”Port [1]\”:null,\”Port [0]\”:null,\”Protocol [2]\”:null,\”Remote Syslog Host [1]\”:null,\”Protocol [1]\”:null,\”Remote Syslog Host [0]\”:null,\”Protocol [0]\”:null,\”Remote Syslog Host [2]\”:null},\”/etc/pam.d/system-auth\”:{\”Deny Login after these many Unsuccessful Attempts.\”:null,\”Unlock root after (seconds)\”:null,\”On Error Login will be.\”:null,\”Include Root user for SSH lockout.\”:null,\”Unlock user after (seconds)\”:null},\”/etc/shadow\”:{\”root\”:{\”maximumDays\”:\”90\”,\”warningDays\”:\”7\”},\”bin\”:{\”maximumDays\”:\”90\”,\”warningDays\”:\”7\”},\”daemon\”:{\”maximumDays\”:\”90\”,\”warningDays\”:\”7\”},\”messagebus\”:{\”maximumDays\”:\”90\”,\”warningDays\”:\”7\”},\”systemd-bus-proxy\”:{\”maximumDays\”:\”90\”,\”warningDays\”:\”7\”},\”systemd-journal-gateway\”:{\”maximumDays\”:\”90\”,\”warningDays\”:\”7\”},\”systemd-journal-remote\”:{\”maximumDays\”:\”90\”,\”warningDays\”:\”7\”},\”systemd-journal-upload\”:{\”maximumDays\”:\”90\”,\”warningDays\”:\”7\”},\”systemd-network\”:{\”maximumDays\”:\”90\”,\”warningDays\”:\”7\”},\”systemd-resolve\”:{\”maximumDays\”:\”90\”,\”warningDays\”:\”7\”},\”systemd-timesync\”:{\”maximumDays\”:\”90\”,\”warningDays\”:\”7\”},\”nobody\”:{\”maximumDays\”:\”90\”,\”warningDays\”:\”7\”},\”rpc\”:{\”maximumDays\”:\”90\”,\”warningDays\”:\”7\”},\”ntp\”:{\”maximumDays\”:\”90\”,\”warningDays\”:\”7\”},\”sshd\”:{\”maximumDays\”:\”90\”,\”warningDays\”:\”7\”},\”smmsp\”:{\”maximumDays\”:\”90\”,\”warningDays\”:\”7\”},\”apache\”:{\”maximumDays\”:\”90\”,\”warningDays\”:\”7\”},\”sso-user\”:{\”maximumDays\”:\”90\”,\”warningDays\”:\”7\”},\”vpostgres\”:{\”maximumDays\”:\”\”,\”warningDays\”:\”7\”},\”vapiEndpoint\”:{\”maximumDays\”:\”90\”,\”warningDays\”:\”7\”},\”eam\”:{\”maximumDays\”:\”90\”,\”warningDays\”:\”7\”},\”vlcm\”:{\”maximumDays\”:\”90\”,\”warningDays\”:\”7\”},\”vsan-health\”:{\”maximumDays\”:\”90\”,\”warningDays\”:\”7\”},\”vsm\”:{\”maximumDays\”:\”90\”,\”warningDays\”:\”7\”},\”vsphere-ui\”:{\”maximumDays\”:\”90\”,\”warningDays\”:\”7\”},\”wcp\”:{\”maximumDays\”:\”\”,\”warningDays\”:\”7\”},\”content-library\”:{\”maximumDays\”:\”90\”,\”warningDays\”:\”7\”},\”imagebuilder\”:{\”maximumDays\”:\”90\”,\”warningDays\”:\”7\”},\”perfcharts\”:{\”maximumDays\”:\”90\”,\”warningDays\”:\”7\”},\”vpgmonusr\”:{\”maximumDays\”:\”\”,\”warningDays\”:\”7\”},\”vtsdbmonusr\”:{\”maximumDays\”:\”\”,\”warningDays\”:\”7\”},\”zuul\”:{\”maximumDays\”:\”90\”,\”warningDays\”:\”7\”},\”Send Waring before this No of Days.\”:null,\”Password validity (days)\”:null}},\”name\”:\”ApplianceManagement\”}}}” |
Authors
Ansible Cloud Team (@ansible-collections)