-
Notifications
You must be signed in to change notification settings - Fork 23.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New Memset module to manage DNS zone records #40392
Conversation
Added test records - working as expected! |
Works fine for me. |
Added and removed DNS records with this. Works exactly as expected |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a way to have multiple a records? Is this supported by the api?
needs_info
- Manage DNS records in a Memset account. | ||
options: | ||
state: | ||
required: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not a blocker but the convention is to have present
as default, please also consider this for your module.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, I can do that.
# if we have any matches, delete them. | ||
if records: | ||
for zone_record in records: | ||
if args['check_mode']: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure if this works, did you test check mode? shouldn't this be module.check_mode
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I add it to the args here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, missed that!
@resmo unfortunately not, the API only supports a single record at a time so it's a case of a new task each time (when testing i've been using with_items). |
…e and add documentation for how to create multiple DNS records
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shipit
counting 4 shipits. |
Thanks! |
Works for me! |
SUMMARY
This PR provides a module to manage DNS zone records hosted at Memset .
ISSUE TYPE
COMPONENT NAME
ANSIBLE VERSION