|
|
@ -133,9 +133,9 @@ import os
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
from dnsimple import DNSimple
|
|
|
|
from dnsimple import DNSimple
|
|
|
|
from dnsimple.dnsimple import DNSimpleException
|
|
|
|
from dnsimple.dnsimple import DNSimpleException
|
|
|
|
|
|
|
|
HAS_DNSIMPLE = True
|
|
|
|
except ImportError:
|
|
|
|
except ImportError:
|
|
|
|
print "failed=True msg='dnsimple required for this module'"
|
|
|
|
HAS_DNSIMPLE = False
|
|
|
|
sys.exit(1)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def main():
|
|
|
|
def main():
|
|
|
|
module = AnsibleModule(
|
|
|
|
module = AnsibleModule(
|
|
|
@ -158,6 +158,9 @@ def main():
|
|
|
|
supports_check_mode = True,
|
|
|
|
supports_check_mode = True,
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if not HAS_DNSIMPLE:
|
|
|
|
|
|
|
|
module.fail_json("dnsimple required for this module")
|
|
|
|
|
|
|
|
|
|
|
|
account_email = module.params.get('account_email')
|
|
|
|
account_email = module.params.get('account_email')
|
|
|
|
account_api_token = module.params.get('account_api_token')
|
|
|
|
account_api_token = module.params.get('account_api_token')
|
|
|
|
domain = module.params.get('domain')
|
|
|
|
domain = module.params.get('domain')
|
|
|
|