From 863e321b96f1985819ab154423b20ff26e542317 Mon Sep 17 00:00:00 2001 From: Henri Ky Date: Thu, 14 Dec 2023 15:16:22 +0100 Subject: [PATCH] fix(ranger_usersync): core-site.xml files owners permissions modified fix(ranger_usersync): modify task name --- roles/ranger/usersync/tasks/config.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/roles/ranger/usersync/tasks/config.yml b/roles/ranger/usersync/tasks/config.yml index 8f0ef76a..f55ac4d3 100644 --- a/roles/ranger/usersync/tasks/config.yml +++ b/roles/ranger/usersync/tasks/config.yml @@ -18,6 +18,14 @@ args: chdir: "{{ ranger_usersync_install_dir }}" +- name: Ensure core-site.xml has correct owner and permissions + ansible.builtin.file: + path: "{{ hadoop_root_conf_dir }}/conf/core-site.xml" + state: file + owner: "root" + group: "root" + mode: "0644" + - name: Render log4j.properties ansible.builtin.template: src: log4j.properties.j2