From 55faff83218aa70f26030a07c52da4fd086ff64e Mon Sep 17 00:00:00 2001 From: yohan <783b8c87@scimetis.net> Date: Sat, 28 Sep 2024 14:46:56 +0200 Subject: [PATCH] Fix permissions. --- roles/role_deploy_internal_named/tasks/main.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/roles/role_deploy_internal_named/tasks/main.yml b/roles/role_deploy_internal_named/tasks/main.yml index 5f232d5..9104edc 100644 --- a/roles/role_deploy_internal_named/tasks/main.yml +++ b/roles/role_deploy_internal_named/tasks/main.yml @@ -27,6 +27,7 @@ ansible.builtin.template: src: "{{ item }}.j2" dest: "/mnt/volumes/etc_internal_named/data/{{ item }}" + setype: container_file_t become: true with_items: - named.conf @@ -49,6 +50,6 @@ - 127.0.0.1:53:53/tcp - 127.0.0.1:53:53/udp volume: - - /mnt/volumes/etc_internal_named/data:/etc/bind:Z - - /mnt/volumes/var_cache_internal_named/data:/var/cache/bind:Z + - /mnt/volumes/etc_internal_named/data:/etc/bind:z + - /mnt/volumes/var_cache_internal_named/data:/var/cache/bind:z become: true