diff options
author | Jim Rubenstein <jrubenstein@gmail.com> | 2017-06-17 02:27:00 -0400 |
---|---|---|
committer | John R Barker <john@johnrbarker.com> | 2017-06-17 07:27:00 +0100 |
commit | 26b8f90c9aea7354c1f7626d831fab62da84078d (patch) | |
tree | f2119a344209a3aabf7342da05681a6817e9c1bc | |
parent | 5f23aa69c6e0a5eba9a901f3aaabca599e6a910a (diff) | |
download | ansible-26b8f90c9aea7354c1f7626d831fab62da84078d.tar.gz |
Adds ANAME support for DNSMadeEasy module (#21030)
-rw-r--r-- | lib/ansible/modules/net_tools/dnsmadeeasy.py | 6 |
1 files 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'), |