From 88ca14de1834887d3ea6f377cb0997eff9859d0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Thu, 11 Sep 2025 19:26:52 +0300 Subject: [PATCH] Add more configuration tasks for PowerDNS in Deployer --- tasks/deployer.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tasks/deployer.yml b/tasks/deployer.yml index 012cb11..072de43 100644 --- a/tasks/deployer.yml +++ b/tasks/deployer.yml @@ -393,6 +393,18 @@ - powerdns-authorative - dns +- name: "Deployer - PowerDNS Authorative - Configure - Create Zone" + ansible.builtin.uri: + url: "http://127.0.0.1:8081/api/v1/servers/localhost/zones/tjas." + method: POST + headers: + X-API-Key: "{{ config.powerdns.apiKey }}" + status_code: 201 + body_format: json + body: {"rrsets": "false"} + tags: + - powerdns-authorative + - dns - name: "Deployer - PowerDNS Recursor - Configure - Create Folder" ansible.builtin.file: