...
Parameter | Required/Optional | Description |
---|---|---|
| Required | Specifies the fully qualified host name to add or remove from To update the name of a CNAME record object, define a dictionary object that contains the following parameters:
|
| Required | Specifies the canonical name of the CNAME record. |
| Optional | Specifies the DNS view to associate the CNAME record with. |
| Optional | Specifies the Time To Live (TTL) value for the record. |
| Optional | Specifies the extensible attributes for the CNAME record object. |
| Optional | Specifies the state of the CNAME record instance on the NIOS server. Set one of the following values:
|
| Optional | Describes the CNAME 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 |
...
name: configure a CNAME record
infoblox.nios_modules.nios_cname_record:
name: cname.ansibletestzone.com
canonical: realhost.ansible.com
state: present
provider:
host: <nios_hostname_or_hostip>
username: <nios_username>
password: <nios_password>
connection: local
name: add a comment to an existing CNAME record
infoblox.nios_modules.nios_cname_record:
name: cname.ansibletestzone.com
canonical: realhost.ansible.com
comment: this is a test comment
state: present
provider:
host: <nios_hostname_or_hostip>
username: <nios_username>
password: <nios_password>
connection: local
name: Update the name of a CNAME record
infoblox.nios_modules.nios_cname_record:
name: {old_name: cname.ansibletestzone.com, new_name: demo.ansibletestzone.com}
canonical: realhost.ansible.com
state: present
provider:
host: <nios_hostname_or_hostip>
username: <nios_username>
password: <nios_password>
connection: local
...