SRV Record
Use the nios_srv_record
module to create, update, or remove an SRV record object from a NIOS Grid.
The following table describes the parameters you can define in the nios_srv_record
module:
Parameter | Required/Optional | Description |
---|---|---|
| Required | Specifies the fully qualified host name of the record to add, update, or remove from NIOS. To update the name of an SRV record object, define a dictionary object that contains the following parameters:
|
| Optional | Specifies the DNS view to associate the SRV record with. |
| Optional | Specifies the port of this SRV record. |
| Optional | Specifies the priority for this SRV record. |
| Optional | Specifies the target FQDN for this SRV record. |
| Optional | Specifies the weight for this SRV record. |
| Optional | Specifies the Time To Live (TTL) value for the record. |
| Optional | Specifies extensible attributes for the SRV record object. |
| Optional | Specifies the state of the SRV record instance on the NIOS server.
|
| Optional | Describes the SRV 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 |
Note
When creating an SRV record, you must specify values for the name
, port
, priority
, target
, and weight
parameters.
Examples
name: Configure an SRV record
infoblox.nios_modules.nios_srv_record:
name: sip. tcp.service.ansible.com
port: 5080
priority: 10
target: service1.ansible.com
weight: 10
state: present
provider:
host: <nios_hostname_or_hostip>
username: <nios_username>
password: <nios_password>
connection: local
name: Update the name of an SRV record
infoblox.nios_modules.nios_srv_record:
name: {old_name: _sip._tcp.service.ansible.com, new_name: _sip._udp.service.ansible.com}
port: 5080
priority: 10
target: service1.ansible.com
weight: 10
state: present
provider:
host: <nios_hostname_or_hostip>
username: <nios_username>
password: <nios_password>
connection: local