Use the nios_mx_record
module to create, update, or remove an MX record object from a NIOS Grid.
The following table describes the parameters you can define in the nios_mx_record
module:
Parameter | Required/Optional | Description |
---|---|---|
| Required | Specifies the fully qualified host name of the record to add, update, or remove from NIOS. |
| Optional | Specifies the DNS view to associate the MX record with. |
| Required | Specifies the mail exchanger FQDN for this MX record. |
| Required | Specifies the preference value in the range of 0 to 65535 that is formatted as a 32-bit unsigned integer. |
| Optional | Specifies the Time To Live (TTL) value for the record. |
| Optional | Specifies extensible attributes for the MX record object. |
| Optional | Specifies the state of the MX record instance on the NIOS server.
|
| Optional | Describes the MX record object. |
| Required | Defines the details of the connection:
For information on additional fields you can define, |
see the list |
of subparameters in the NIOS Modules for Ansible Collections topic. | ||
| Required | The |
Examples
name: Configure an MX record
infoblox.nios_modules.nios_mx_record:
name: ansible.com
mx: mailhost.ansible.com
preference: 0
state: present
provider:
host:
<nios<nios_hostname_or_
hostip>hostip>
username:
<nios <nios_
username>username>
password:
<nios <nios_
password>password>
connection: local
name:Add a comment to an existing MX record
infoblox.nios_modules.nios_mx_record:
name: ansible.com
mx: mailhost.ansible.com
preference: 0
comment: this is a test
comment comment state: present
provider:
host:
<nios<nios_hostname_or_
hostip>hostip>
username:
<nios <nios_
username>username>
password:
<nios <nios_
password>password>
connection: local