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.

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

Description

@rsanzante

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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