Use the nios_a_record
module to create, update, or remove an A record object from a NIOS Grid.
The following table describes the parameters you can define in the nios_a_record
module:
Parameter | Required/Optional | Description |
---|---|---|
| Required | Specifies the fully qualified host name to add or remove from |
| Optional | Sets the DNS view to associate the A record with. |
| Required | Specifies the IPv4 address for the A record. To allocate a dynamic IP address, define a dictionary object that contains the |
| Optional | Specifies the Time To Live (TTL) value for the record. The duration that the record is valid for, in seconds (cached). |
| Optional | Specifies the extensible attributes for the A record object. |
| Optional | Specifies the state of the A record instance on the NIOS server. Set one of the following values:
|
| Optional | Describes the A 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 A record
infoblox.nios_modules.nios_a_record:
name: a.ansibletestzone.com
ipv4: 192.168.10.1
comment: this is a test comment
state: present
provider:
host: <nios_hostname_or_hostip>
username: <nios_username>
password: <nios_password>
connection: local
name: dynamically add a record to the next available ip
infoblox.nios_modules.nios_a_record:
name: a.ansibletestzone.com
ipv4: {nios_next_ip: 192.168.10.0/24}
comment: this is a test comment
state: present
provider:
host: <nios_hostname_or_hostip>
username: <nios_username>
password: <nios_password>
connection: local