resmo / ansible-role-bind Goto Github PK
View Code? Open in Web Editor NEWBind role for Ansible
Bind role for Ansible
Please add Ubuntu/Debian as a dependency. This role will fail if attempted on RHEL/CentOS which is not obvious unless you look at the code.
It would be nice to be able to specify list of allow-recursion parameters.
If recursion is enabled there's no way to configure allow-recursion parameter.
There's no option to enable logging.
when i choose bind_masterzones_path other than masters, it breaks my nameserver config and bind denies to start.
this is because of this line:
- name: Copy master zone files
copy: src={{ bind_masterzones_path }}/db.{{ item.name }} dest={{ bind_base_zones_path }}/{{bind_masterzones_path}} owner={{ bind_user }} group={{ bind_group }}
which will copy config files to dest=/var/lib/bind/masters which is a pre existing directory. if you change it to /var/lib/bind/XYZ where XYZ does not exist, it will copy the contents of your zone file to this file. So we should either pre create the directory or specify destination file name.
in the named.conf the named.conf.local is included, but this ansible role never place it on the destination server. when starting bind, it will fail to do so.
Hello Resmo,
If you change file "/etc/bind/slaves/db.{{ zone }}"; to file "/var/lib/bind/slaves/db.{{ zone }}" this will allow zone transfer without problems. This is because the apparmor is enabled. The best way for me is to have variable for filepath for zone.
If you accept pull requests I can submit to you patch.
Best!
README says: BSD
Meta says: MIT
The task that copies the zone files to server is:
- name: Copy master zone files
copy: src={{ bind_masterzones_path }}/db.{{ item.name }} dest={{ bind_base_zones_path }}/{{bind_masterzones_path}} owner={{ bind_user }} group={{ bind_group }}
with_items: "{{ bind_config_master_zones }}"
notify: reload bind
tags: bind-zones
It uses the variable bind_masterzones_path
in the src param and in the dest param, so both paths are related. With default value (masters), local zones files must be placed in a 'masters' directory.
Using a different variable for src param you can place the files in other path not related to the destination path.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.