Disable redis protected-mode on rhel9

This commit is contained in:
2025-08-14 11:20:48 +02:00
parent 590778ffd7
commit 8f0cafa5fa
+9
View File
@@ -8,6 +8,15 @@
notify:
- Restart redis
- name: Disable redis protected-mode on rhel9
ansible.builtin.lineinfile:
path: /etc/redis/redis.conf
regexp: '^protected-mode '
line: protected-mode no
when: ansible_distribution_major_version == "9"
notify:
- Restart redis
- name: Edit redis config on rhel8
ansible.builtin.lineinfile:
path: /etc/redis.conf