community / community.general / 6.6.8 / module / ipwcli_dns Manage DNS Records for Ericsson IPWorks via ipwcli | "added in version" 0.2.0 of community.general" Authors: Christian Wollinger (@cwollinger)community.general.ipwcli_dns (6.6.8) — module
Install with ansible-galaxy collection install community.general:==6.6.8
collections: - name: community.general version: 6.6.8
Manage DNS records for the Ericsson IPWorks DNS server. The module will use the ipwcli to deploy the DNS records.
- 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
ttl: default: 3600 description: - Sets the TTL of the record. type: int port: description: - Sets the port of the SRV record. - Required for I(type=SRV). type: int type: choices: - NAPTR - SRV - A - AAAA description: - Type of the record. required: true type: str flags: choices: - S - A - U - P description: - Sets one of the possible flags of NAPTR record. - Required for I(type=NAPTR). type: str order: description: - Sets the order of the NAPTR record. - Required for I(type=NAPTR). type: int state: choices: - absent - present default: present description: - Whether the record should exist or not. type: str target: description: - Sets the target of the SRV record. - Required for I(type=SRV). type: str weight: default: 10 description: - Sets the weight of the SRV record. type: int address: description: - The IP address for the A or AAAA record. - Required for I(type=A) or I(type=AAAA). type: str dnsname: description: - Name of the record. required: true type: str service: description: - Sets the service of the NAPTR record. - Required for I(type=NAPTR). type: str password: description: - Password to login on ipwcli. required: true type: str priority: default: 10 description: - Sets the priority of the SRV record. type: int username: description: - Username to login on ipwcli. required: true type: str container: description: - Sets the container zone for the record. required: true type: str preference: description: - Sets the preference of the NAPTR record. - Required for I(type=NAPTR). type: int replacement: description: - Sets the replacement of the NAPTR record. - Required for I(type=NAPTR). type: str
record: description: The created record from the input params returned: always type: str