NAPTR Record
Use the nios_naptr_record
module to create, update, or remove an NAPTR record object from a NIOS Grid.
The following table describes the parameters you can define in the nios_naptr_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 NAPTR record with. |
| Required | Specifies the order value for this NAPTR record in the range of 0 to 65535 that is formatted as a 32-bit unsigned integer. |
| Required | Specifies the preference value for this NAPTR record in the range of 0 to 65535 that is formatted as a 32-bit unsigned integer. |
| Required | Specifies the replacement field for the NAPTR record. |
| Optional | The services field (at most 128 characters in length) for the NAPTR record. |
| Optional | Specifies the |
| Optional | Specifies the regular expression-based rewriting rule of the NAPTR record. |
| Optional | Specifies the Time To Live (TTL) value for the record. The duration that the record is valid for, in seconds (cached). |
| Optional | Specifies extensible attributes for the NAPTR record object. |
| Optional | Specifies the state of the NAPTR record instance on the NIOS server.
|
| Optional | Describes the NAPTR 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 NAPTR record
infoblox.nios_modules.nios_naptr_record:
name: '*.subscriber-100.ansiblezone.com'
order: 1000
preference: 10
replacement: replacement1.network.ansiblezone.com
state: present
provider:
host: <nios_hostname_or_hostip>
username: <nios_username>
password: <nios_password>
connection: local
name: Add a comment to an existing NAPTR record
infoblox.nios_modules.nios_naptr_record:
name: '*.subscriber-100.ansiblezone.com'
order: 1000
preference: 10
replacement: replacement1.network.ansiblezone.com
comment: this is a test comment
state: present
provider:
host: <nios_hostname_or_hostip>
username: <nios_username>
password: <nios_password>
connection: local