8000 GitHub - vi7/ansible-role-coredns: Ansible role to run containerized CoreDNS
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

vi7/ansible-role-coredns

Repository files navigation

Ansible role: Containerized CoreDNS

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!

Requirements

N/A

Role Variables

See defaults/main.yml for the full variable list and their description

Dependencies

Collections:

Roles:

Example Playbook

---
- 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

Development

Role testing

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

Author Information

vi7

About

Ansible role to run containerized CoreDNS

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published
0