Giter Club home page Giter Club logo

ansible-role-bind's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ansible-role-bind's Issues

Apt Dependency

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.

changed bind_masterzones_path breaks config

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.

named.conf.local not existing

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.

/etc/bind is not allowed for automatically updates so slave will not work

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!

Make local zones files path independent from server zones files path

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.