Add PowerDNS Authorative database initialization task

This commit is contained in:
Christer Warén
2025-09-08 09:50:18 +03:00
parent 4b6a6b20d2
commit f6b3c83d78

View File

@@ -347,6 +347,25 @@
- powerdns-authorative - powerdns-authorative
- dns - dns
- name: "Deployer - PowerDNS Authorative - Database - Init"
community.mysql.mysql_db:
login_host: "127.0.0.1"
login_user: "{{ config.mariadb.users['powerdns'].username }}"
login_password: "{{ config.mariadb.users['powerdns'].password }}"
name: "{{ config.mariadb.users['powerdns'].database }}"
state: import
target: './files/powerdns-authorative/schema.mysql.sql'
failed_when: true
when:
- config.mariadb.users is defined
- config.mariadb.users['powerdns'] is defined
- config.mariadb.users['powerdns'].username is defined
- config.mariadb.users['powerdns'].password is defined
- config.mariadb.users['powerdns'].database is defined
tags:
- powerdns-authorative
- dns
- name: "Deployer - PowerDNS Authorative - Pull Image" - name: "Deployer - PowerDNS Authorative - Pull Image"
containers.podman.podman_image: containers.podman.podman_image:
name: docker.io/powerdns/pdns-auth-50 name: docker.io/powerdns/pdns-auth-50