Ansible Playbook Example for deploing PowerDNS Actoritative and Recursor servers with MySQL backend (Master/Slave replication) and PowerDNS-Admin web GUI (Flask, Gunicorn, Nginx, SSL)
Using:
- Install complementary roles:
ansible-galaxy install -r install_roles.yml
- Configure password in group_vars/all.yml (you can encrypt this file with ansible-vault)
- Replace mysql_replication_master in dns_admin.yml for real ip of your master server
- Deploy
ansible-playbook dns_admin.yml
- Open PowerDNS-Admin - https://servers_ip/. Default login and password: admin / admin