rytis.utils.dns_provider (0.0.3) — module

Manage DNS records on various DNS providers

Authors: Rytis Sileika (@rytis)

Install collection

Install with ansible-galaxy collection install rytis.utils:==0.0.3


Add to requirements.yml

  collections:
    - name: rytis.utils
      version: 0.0.3

Description

Manage DNS records on a selection of popular DNS providers. Module uses `python-lexicon` under the hood to interact with DNS providers


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
    - name: Create a new A record
      rytis.utils.dns_provider:
        provider_name: "powerdns"
        action: "create"
        delegated: "my_subdomain"
        domain: "example.com"
        type: "A"
        name: "test"
        content: "192.168.0.1"
        provider_options:
          pdns_server: "http://<powerdns_authoritative_server_address>:8081"
          auth_token: "<powerdns_auth_server_token>"