forked from cps-deployments/psi.bec
Disable redis protected-mode on rhel9
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user