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