From 26b8f90c9aea7354c1f7626d831fab62da84078d Mon Sep 17 00:00:00 2001 From: Jim Rubenstein Date: Sat, 17 Jun 2017 02:27:00 -0400 Subject: [PATCH] Adds ANAME support for DNSMadeEasy module (#21030) --- lib/ansible/modules/net_tools/dnsmadeeasy.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/ansible/modules/net_tools/dnsmadeeasy.py b/lib/ansible/modules/net_tools/dnsmadeeasy.py index df6184f261..6632b4f7cf 100644 --- a/lib/ansible/modules/net_tools/dnsmadeeasy.py +++ b/lib/ansible/modules/net_tools/dnsmadeeasy.py @@ -59,7 +59,7 @@ options: description: - Record type. required: false - choices: [ 'A', 'AAAA', 'CNAME', 'HTTPRED', 'MX', 'NS', 'PTR', 'SRV', 'TXT' ] + choices: [ 'A', 'AAAA', 'CNAME', 'ANAME', 'HTTPRED', 'MX', 'NS', 'PTR', 'SRV', 'TXT' ] default: null record_value: @@ -480,7 +480,7 @@ class DME2: if not self.all_records: self.all_records = self.getRecords() - if record_type in ["A", "AAAA", "CNAME", "HTTPRED", "PTR"]: + if record_type in ["A", "AAAA", "CNAME", "ANAME", "HTTPRED", "PTR"]: for result in self.all_records: if result['name'] == record_name and result['type'] == record_type: return result @@ -570,7 +570,7 @@ def main(): state=dict(required=True, choices=['present', 'absent']), record_name=dict(required=False), record_type=dict(required=False, choices=[ - 'A', 'AAAA', 'CNAME', 'HTTPRED', 'MX', 'NS', 'PTR', 'SRV', 'TXT']), + 'A', 'AAAA', 'CNAME', 'ANAME', 'HTTPRED', 'MX', 'NS', 'PTR', 'SRV', 'TXT']), record_value=dict(required=False), record_ttl=dict(required=False, default=1800, type='int'), monitor=dict(default='no', type='bool'),