Role to run CoreDNS server using Docker
!! WARNING: !! This role installs Python 3 and Docker SDK for Python packages to the target host(s) automatically!
N/A
See defaults/main.yml for the full variable list and their description
Collections:
Roles:
---
- hosts: servers
tasks:
- name: "Include coredns"
include_role:
name: "vi7.coredns"
vars:
coredns_extra_plugins:
- errors
- loadbalance
- reload
- prometheus
coredns_upstream_servers: 1.1.1.1 1.0.0.1
coredns_zonefiles:
- path: files/db.example.com
zone: example.com
- path: files/db.reverse
zone: 1.0.10.in-addr.arpa
Some examples of the RFC 1035-style (BIND) zone files could be found under the files dir
Script test.sh activates Python virtualenv, installs all the required Python packages and executes linter.
More comprehensive functional tests must be executed manually like follows (after running ./test.sh
):
source venv/bin/activate
molecule test