ansible-module-powerdns icon indicating copy to clipboard operation
ansible-module-powerdns copied to clipboard

Feature: content as a list?

Open tabacha opened this issue 4 years ago • 1 comments
trafficstars

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.

tabacha avatar Jun 15 '21 08:06 tabacha

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 ;) ?

Nosmoht avatar Jun 15 '21 08:06 Nosmoht

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:

Armadill0 avatar Jul 01 '24 11:07 Armadill0

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.

Nosmoht avatar Jul 03 '24 12:07 Nosmoht