ansible-module-powerdns
ansible-module-powerdns copied to clipboard
Feature: content as a list?
Hi, thank you for this module.
I would like to suggest to mofiy the code so that content can set a list.
The MX Example (from README.md) would then look like this:
- powerdns_record:
name: zone01.internal.example.com.
zone: zone01.internal.example.com
type: MX
content:
- 10 mx1.zone01.internal.example.com
- 10 mx2.zone01.internal.example.com
pdns_host: powerdns.example.com
pdns_port: 80
pdns_api_key: topsecret
pdns_prot: http
loop:
And will even delete a wrong mx record if it was there before. Doing this from outside (without python with ansible and a dig look is not very fine, as you make sure the dig lookup will use the right resolver without caching.
Hi @tabacha,
i'm not working with PowerDNS anymore since years so i'm not actively changing the code anymore, just merging MR's.
So maybe you or someone else can send a MR ;) ?
Hi @tabacha,
it's been a long time since you created this issue, but I just pushed PR #37 to address this feature request. :slightly_smiling_face:
Hi @Armadill0,
thanks for your contribution.
I just merged your PR as there are no pipelines so far. Would be great if anyone could add some Github CI actions to validate changes.