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

changed bind_masterzones_path breaks config #23

Open
jeff1985 opened this issue Jul 19, 2017 · 0 comments · May be fixed by #24
Open

changed bind_masterzones_path breaks config #23

jeff1985 opened this issue Jul 19, 2017 · 0 comments · May be fixed by #24

Comments

@jeff1985
Copy link

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.

@maqdev maqdev linked a pull request Sep 29, 2017 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant