fix(valkey): ensure config path is owned by root by default

This commit is contained in:
transcaffeine 2025-04-23 15:36:47 +02:00
parent 5fa26ed187
commit 1694a08374
Signed by: transcaffeine
GPG Key ID: 03624C433676E465
2 changed files with 4 additions and 0 deletions

View File

@ -9,6 +9,8 @@ valkey_user: >-2
valkey{{ valkey_instance_suffix }}
valkey_config_path: "/etc/valkey"
valkey_config_path_owner: "root"
valkey_config_path_group: "root"
valkey_config_file: >-2
{{ valkey_config_path }}/valkey{{ valkey_instance_suffix }}.conf
valkey_data_path: "/var/lib/valkey{{ valkey_instance_suffix }}"

View File

@ -39,6 +39,8 @@
mode: "{{ path.mode | default('0755') }}"
loop:
- name: "{{ valkey_config_path }}"
owner: "{{ valkey_config_path_owner }}"
group: "{{ valkey_config_path_group }}"
- name: "{{ valkey_data_path }}"
loop_control:
loop_var: "path"