From 7677f6af2388345897adcef9931b02a6f52d5c94 Mon Sep 17 00:00:00 2001 From: Jeff Geerling Date: Wed, 31 Jul 2024 00:39:57 -0500 Subject: [PATCH] Issue #84: Fix configuration directory mode. --- tasks/main.yml | 2 +- vars/Debian.yml | 1 + vars/RedHat.yml | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tasks/main.yml b/tasks/main.yml index d18e5b2..03ee836 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -12,7 +12,7 @@ file: path: "{{ redis_conf_path | dirname }}" state: directory - mode: 0750 + mode: "{{ redis_conf_dir_mode }}" - name: Ensure Redis is configured. template: diff --git a/vars/Debian.yml b/vars/Debian.yml index 47aaa02..f1a05c1 100644 --- a/vars/Debian.yml +++ b/vars/Debian.yml @@ -1,5 +1,6 @@ --- __redis_package: redis-server redis_daemon: redis-server +redis_conf_dir_mode: 02770 redis_conf_path: /etc/redis/redis.conf redis_conf_mode: 0640 diff --git a/vars/RedHat.yml b/vars/RedHat.yml index 30b40a1..f400573 100644 --- a/vars/RedHat.yml +++ b/vars/RedHat.yml @@ -1,5 +1,6 @@ --- __redis_package: redis redis_daemon: redis +redis_conf_dir_mode: 0750 redis_conf_path: /etc/redis/redis.conf redis_conf_mode: 0644