Skip to content
This repository was archived by the owner on Jul 7, 2021. It is now read-only.
This repository was archived by the owner on Jul 7, 2021. It is now read-only.

changed bind_masterzones_path breaks config #23

@jeff1985

Description

@jeff1985

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions