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

Make local zones files path independent from server zones files path #27

Open
rsanzante opened this issue Nov 30, 2017 · 0 comments
Open

Comments

@rsanzante
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant