From 479430a9e9021787bfdebb5de3858b4b7685082f Mon Sep 17 00:00:00 2001 From: Felix Stupp Date: Mon, 24 Feb 2020 14:35:25 +0100 Subject: [PATCH] dns/application: Reconfigured creating zone directories using loop --- roles/dns/application/tasks/main.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/roles/dns/application/tasks/main.yml b/roles/dns/application/tasks/main.yml index cf54b60..c5fd781 100644 --- a/roles/dns/application/tasks/main.yml +++ b/roles/dns/application/tasks/main.yml @@ -6,13 +6,15 @@ name: - bind9 -- name: Create directory for zone databases +- name: Create directories for zone databases file: - path: "{{ dns_zones_directory }}" + path: "{{ item }}" state: directory owner: root group: "{{ dns_user }}" mode: "u=rw,g=r,o=r" + loop: + - "{{ dns_zones_directory }}" - name: Configure bind9 options template: