community.general.memset_server_info module – Retrieve server information
Note
This module is part of the community.general collection (version 9.5.1).
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 community.general
.
To use it in a playbook, specify: community.general.memset_server_info
.
Synopsis
Retrieve server information.
Parameters
Parameter |
Comments |
---|---|
The API key obtained from the Memset control panel. |
|
The server product name (that is, |
Attributes
Attribute |
Support |
Description |
---|---|---|
Support: full added in community.general 3.3.0 This action does not modify state. |
Can run in |
|
Support: N/A This action does not modify state. |
Will return details on what has changed (or possibly needs changing in |
Notes
Note
An API key generated via the Memset customer control panel is needed with the following minimum scope -
server.info
.
Examples
- name: Get details for testyaa1
community.general.memset_server_info:
name: testyaa1
api_key: 5eb86c9896ab03919abcf03857163741
delegate_to: localhost
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
Info from the Memset API Returned: always |
|
Whether this server has a backup service. Returned: always Sample: |
|
Whether the server has a control panel (i.e. cPanel). Returned: always Sample: |
|
The data zone the server is in. Returned: always Sample: |
|
Current expiry date of the server. Returned: always Sample: |
|
Details about the firewall group this server is in. Returned: always Sample: |
|
The type of firewall the server has (i.e. self-managed, managed). Returned: always Sample: |
|
The server’s hostname. Returned: always Sample: |
|
When true, Memset won’t remind the customer that monitoring is disabled. Returned: always Sample: |
|
List of dictionaries of all IP addresses assigned to the server. Returned: always Sample: |
|
Whether the server has monitoring enabled. Returned: always Sample: |
|
The server’s monitoring level (i.e. basic). Returned: always Sample: |
|
Server name (same as the service name). Returned: always Sample: |
|
The network zone(s) the server is in. Returned: always Sample: |
|
Customer-set nickname for the server. Returned: always Sample: |
|
Whether or not to reboot the server if monitoring detects it down. Returned: always Sample: |
|
Whether Memset should use NRPE to monitor this server. Returned: always Sample: |
|
The server’s Operating System. Returned: always Sample: |
|
Intrusion detection support level for this server. Returned: always Sample: |
|
The alert level at which notifications are sent. Returned: always Sample: |
|
Server’s primary IP. Returned: always Sample: |
|
Renewal cost for the server. Returned: always Sample: |
|
Currency for renewal payments. Returned: always Sample: |
|
VAT rate for renewal payments Returned: always Sample: |
|
Server’s start date. Returned: always Sample: |
|
Current status of the server (i.e. live, onhold). Returned: always Sample: |
|
Support level included with the server. Returned: always Sample: |
|
What this server is (i.e. dedicated) Returned: always Sample: |
|
Dictionary of tagged and untagged VLANs this server is in. Returned: always Sample: |
|
Vulnerability scanning level. Returned: always Sample: |