项目作者: CWollinger

项目描述 :
Ansible Module: Manage DNS Records for Ericsson IPWorks via ipwcli
高级语言: Python
项目地址: git://github.com/CWollinger/ansible_ipwcli_dns.git
创建时间: 2020-02-05T17:30:13Z
项目社区:https://github.com/CWollinger/ansible_ipwcli_dns

开源协议:GNU General Public License v3.0

下载


ansible-ipwcli_dns

Manage DNS Records for Ericsson IPWorks via ipwcli

Manage DNS records for the Ericsson IPWorks DNS server. The module will use the ipwcli to deploy the DNS records.

Parameters

Parameter Type required Choices/Defaults Comments
address string The IP address for the A or AAAA record. Required for type=A or type=AAAA
container string required Sets the container zone for the record.
dnsname string required Name of the record.
flags string Choices: S,A,U,P Sets one of the possible flags of NAPTR record.
order integer Sets the order of the NAPTR record. Required for type=NAPTR
password string required Password to login on ipwcli.
port integer Sets the port of the SRV record. Required for type=SRV
preference integer Sets the preference of the NAPTR record. Required for type=NAPTR
priority integer Default: 10 Sets the priority of the SRV record.
replacement string Sets the type of the NAPTR record. Required for type=NAPTR
service string Sets the type of the record. Required for type=NAPTR
state string Choices: absent, present (<- default) Whether the record should exist or not.
target string Sets the target of the SRV record. Required for type=SRV
ttl integer Default: 3600 Sets the ttl of the record.
type string required Choices: NAPTR, SRV, A, AAAA Type of the record.
username string required Username to login on ipwcli.
weight integer Default: 10 Sets the weight of the SRV record.

Notes

  • To make the DNS record change affective, you need to run ‘update dnsserver’ on the ipwcli.

Examples

Create A record

  1. - name: Create A record
  2. ipwcli_dns:
  3. dnsname: example.com
  4. type: A
  5. container: ZoneOne
  6. address: 127.0.0.1

Remove SRV record if exists

  1. - name: Remove SRV record if exists
  2. ipwcli_dns:
  3. dnsname: _sip._tcp.test.example.com
  4. type: SRV
  5. container: ZoneOne
  6. ttl: 100
  7. state: absent
  8. target: example.com
  9. port: 5060

Create NAPTR record

  1. - name: Create NAPTR record
  2. ipwcli_dns:
  3. dnsname: test.example.com
  4. type: NAPTR
  5. preference: 10
  6. container: ZoneOne
  7. ttl: 100
  8. order: 10
  9. service: 'SIP+D2T'
  10. replacement: '_sip._tcp.test.example.com.'
  11. flags: S

Return Values

Key Type Returned Description
record string always The created record from the input params

Authors

Christian Wollinger (@cwollinger)