community.general.memset_server_info module – Retrieve server information.
Note
This module is part of the community.general collection (version 4.8.3).
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.
This module was called
memset_server_facts
before Ansible 2.9. The usage did not change.
Parameters
Parameter |
Comments |
---|---|
The API key obtained from the Memset control panel. |
|
The server product name (i.e. |
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: true |
|
Whether the server has a control panel (i.e. cPanel). Returned: always Sample: “cpanel” |
|
The data zone the server is in. Returned: always Sample: “Memset Public Cloud” |
|
Current expiry date of the server. Returned: always Sample: “2018-08-10” |
|
Details about the firewall group this server is in. Returned: always Sample: {“default_outbound_policy”: “RETURN”, “name”: “testyaa-fw1”, “nickname”: “testyaa cPanel rules”, “notes”: “”, “public”: false, “rules”: {“51d7db54d39c3544ef7c48baa0b9944f”: {“action”: “ACCEPT”, “comment”: “”, “dest_ip6s”: “any”, “dest_ips”: “any”, “dest_ports”: “any”, “direction”: “Inbound”, “ip_version”: “any”, “ordering”: 2, “protocols”: “icmp”, “rule_group_name”: “testyaa-fw1”, “rule_id”: “51d7db54d39c3544ef7c48baa0b9944f”, “source_ip6s”: “any”, “source_ips”: “any”, “source_ports”: “any”}}} |
|
The type of firewall the server has (i.e. self-managed, managed). Returned: always Sample: “managed” |
|
The server’s hostname. Returned: always Sample: “testyaa1.miniserver.com” |
|
When true, Memset won’t remind the customer that monitoring is disabled. Returned: always Sample: true |
|
List of dictionaries of all IP addresses assigned to the server. Returned: always Sample: [{“address”: “1.2.3.4”, “bytes_in_today”: 1000.0, “bytes_in_yesterday”: 2000.0, “bytes_out_today”: 1000.0, “bytes_out_yesterday”: 2000.0}] |
|
Whether the server has monitoring enabled. Returned: always Sample: true |
|
The server’s monitoring level (i.e. basic). Returned: always Sample: “basic” |
|
Server name (same as the service name). Returned: always Sample: “testyaa1” |
|
The network zone(s) the server is in. Returned: always Sample: [“reading”] |
|
Customer-set nickname for the server. Returned: always Sample: “database server” |
|
Whether or not to reboot the server if monitoring detects it down. Returned: always Sample: true |
|
Whether Memset should use NRPE to monitor this server. Returned: always Sample: true |
|
The server’s Operating System. Returned: always Sample: “debian_stretch_64” |
|
Intrusion detection support level for this server. Returned: always Sample: “managed” |
|
The alert level at which notifications are sent. Returned: always Sample: 10 |
|
Server’s primary IP. Returned: always Sample: “1.2.3.4” |
|
Renewal cost for the server. Returned: always Sample: “30.00” |
|
Currency for renewal payments. Returned: always Sample: “GBP” |
|
VAT rate for renewal payments Returned: always Sample: “20” |
|
Server’s start date. Returned: always Sample: “2013-04-10” |
|
Current status of the server (i.e. live, onhold). Returned: always Sample: “LIVE” |
|
Support level included with the server. Returned: always Sample: “managed” |
|
What this server is (i.e. dedicated) Returned: always Sample: “miniserver” |
|
Dictionary of tagged and untagged VLANs this server is in. Returned: always Sample: {“tagged”: [], “untagged”: [“testyaa-vlan1”, “testyaa-vlan2”]} |
|
Vulnerability scanning level. Returned: always Sample: “basic” |
Authors
Simon Weald (@glitchcrab)
Collection links
Issue Tracker Repository (Sources) Submit a bug report Request a feature Communication