community.general.ipwcli_dns module – Manage DNS Records for Ericsson IPWorks via ipwcli
Note
This module is part of the community.general collection (version 4.8.3).
You might already have this collection installed if you are using the ansible
package.
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install community.general
.
To use it in a playbook, specify: community.general.ipwcli_dns
.
New in version 0.2.0: of community.general
Synopsis
Manage DNS records for the Ericsson IPWorks DNS server. The module will use the ipwcli to deploy the DNS records.
Requirements
The below requirements are needed on the host that executes this module.
ipwcli (installed on Ericsson IPWorks)
Parameters
Parameter |
Comments |
---|---|
The IP address for the A or AAAA record. Required for |
|
Sets the container zone for the record. |
|
Name of the record. |
|
Sets one of the possible flags of NAPTR record. Required for Choices:
|
|
Sets the order of the NAPTR record. Required for |
|
Password to login on ipwcli. |
|
Sets the port of the SRV record. Required for |
|
Sets the preference of the NAPTR record. Required for |
|
Sets the priority of the SRV record. Default: 10 |
|
Sets the replacement of the NAPTR record. Required for |
|
Sets the service of the NAPTR record. Required for |
|
Whether the record should exist or not. Choices:
|
|
Sets the target of the SRV record. Required for |
|
Sets the TTL of the record. Default: 3600 |
|
Type of the record. Choices:
|
|
Username to login on ipwcli. |
|
Sets the weight of the SRV record. Default: 10 |
Notes
Note
To make the DNS record changes effective, you need to run
update dnsserver
on the ipwcli.
Examples
- name: Create A record
community.general.ipwcli_dns:
dnsname: example.com
type: A
container: ZoneOne
address: 127.0.0.1
- name: Remove SRV record if exists
community.general.ipwcli_dns:
dnsname: _sip._tcp.test.example.com
type: SRV
container: ZoneOne
ttl: 100
state: absent
target: example.com
port: 5060
- name: Create NAPTR record
community.general.ipwcli_dns:
dnsname: test.example.com
type: NAPTR
preference: 10
container: ZoneOne
ttl: 100
order: 10
service: 'SIP+D2T'
replacement: '_sip._tcp.test.example.com.'
flags: S
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
The created record from the input params Returned: always |
Authors
Christian Wollinger (@cwollinger)
Collection links
Issue Tracker Repository (Sources) Submit a bug report Request a feature Communication