diff --git a/tasks/deployer.yml b/tasks/deployer.yml index 012cb11..e53ea3c 100644 --- a/tasks/deployer.yml +++ b/tasks/deployer.yml @@ -393,6 +393,23 @@ - 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" + method: POST + headers: + X-API-Key: "{{ config.powerdns.apiKey }}" + status_code: 201 + body_format: json + body: "{{ zone | to_json }}" + vars: + zone: + name: "tjas." + kind: native + ttl: 86400 + tags: + - powerdns-authorative + - dns - name: "Deployer - PowerDNS Recursor - Configure - Create Folder" ansible.builtin.file: