wti.remote.cpm_web_config module – Set network WEB parameters in WTI OOB and PDU devices
Note
This module is part of the wti.remote collection (version 1.0.10).
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 wti.remote
.
To use it in a playbook, specify: wti.remote.cpm_web_config
.
New in wti.remote 2.10.0
Synopsis
Set network WEB parameters in WTI OOB and PDU devices
Parameters
Parameter |
Comments |
---|---|
This is the Password of the WTI device to send the module. If the cpm_username is blank, this parameter is presumed to be a User Token. |
|
This is the URL of the WTI device to send the module. |
|
This is the Username of the WTI device to send the module. If this value is blank, then the cpm_password is presumed to be a User Token. |
|
Security level for the WEB the device will respond to 0 = Off, 1 = Medium, 2 = High. Choices:
|
|
If HTTP Strict Transport Security (HSTS) is enabled/disabled for the WEB. Choices:
|
|
Activates unsecure WEB for the specified interface. Choices:
|
|
Port used by the insecure WEB. |
|
Activates secure WEB for the specified interface. Choices:
|
|
Port used by the secure WEB. |
|
Intermediate Certificate to be assigned to the Device. |
|
The ethernet port for the SNMP we are defining. Choices:
|
|
Current state of the Online Certificate Status Protocol (OCSP) for the Web Server. Choices:
|
|
Private Certificate to be assigned to the Device. |
|
Signed Certificate to be assigned to the Device. |
|
Inactivity timeout of a user when logged into the web server (valid from 0 to 9999 minutes) 0 is no timeout. |
|
Which TLS the WEB will use 0 = TLSv1.1, 1 = TLSv1.1/TLSv1.2, 2 = TLSv1.2/TLSv1.3, 3 = TLSv1.3 Choices:
|
|
Current state of TRACE requests for thw Web Server. Choices:
|
|
Designates to use an https connection or http connection. Choices:
|
|
Flag to control if the lookup will observe HTTP proxy environment variables when present. Choices:
|
|
If false, SSL certificates will not be validated. This should only be used on personally controlled sites using self-signed certificates. Choices:
|
|
Current state of the CLI over Web for the Web Server. Choices:
|
Notes
Note
Use
groups/cpm
inmodule_defaults
to set common options used between CPM modules.
Examples
# Sets the device WEB Parameters
- name: Set the an WEB Parameter for a WTI device
cpm_snmp_config:
cpm_url: "nonexist.wti.com"
cpm_username: "super"
cpm_password: "super"
interface: "eth0"
use_https: true
validate_certs: false
private_filename: "/tmp/private.key"
signed_filename: "/tmp/signed.key"
inter_filename: "/tmp/intermediate.key"
# Sets the device WEB Parameters using a User Token
- name: Set the an WEB Parameter for a WTI device
cpm_snmp_config:
cpm_url: "nonexist.wti.com"
cpm_username: ""
cpm_password: "randomusertokenfromthewtidevice"
interface: "eth0"
use_https: true
validate_certs: false
# Sets the device WEB Parameters
- name: Set the WEB Parameters a WTI device
cpm_snmp_config:
cpm_url: "nonexist.wti.com"
cpm_username: "super"
cpm_password: "super"
use_https: true
validate_certs: false
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
The output JSON returned from the commands sent Returned: always |
|
Current state of the Online Certificate Status Protocol (OCSP) for the Web Server. Returned: success Sample: |
|
Inactivity timeout of a user. (valid from 0 to 9999 minutes) 0 is no timeout. Returned: success Sample: |
|
Total port being returned from the current call. Returned: success Sample: |
|
Current state of TRACE requests for the Web Server. Returned: success Sample: |
|
Current k/v pairs of Web info for the WTI device after module execution. Returned: always Sample: |
|
Current state of the CLI over Web for the Web Server. Returned: success Sample: |