base/roles/dns
2024-09-21 10:57:46 +02:00
..
defaults feat: add finallycoffee.base.dns role 2023-11-07 18:37:58 +01:00
tasks feat: add finallycoffee.base.dns role 2023-11-07 18:37:58 +01:00
README.md docs: add READMEs to roles powerdns_tsig_key and dns 2024-09-21 10:57:46 +02:00

finallycoffee.base.dns ansible role

Simple role for wrapping around the famedly.dns.update ansible module.

Usage

Example playbook

- target: "{{ target_hosts }}"
  roles:
    - role: finallycoffee.base.dns
      vars:
        dns_server: "dns.example.org"
        dns_zone: "zone.example.org"
        dns_records: "{{ dns_records }}"
        dns_record_state: exact
        dns_tsig_name: "mykeyname"
        dns_tsig_algo: "hmac-sha256"
        dns_tsig_key: "mykeycontent"
  vars:
    dns_records:
      - type: A
        name: gitea
        content: "127.0.0.1"
      - type: AAAA
        name: gitea
        content: "fe80::1"
      - type: CNAME
        name: "_acme_challenge.gitea"
        content: "delegated-cname.challenge.example.org"