mirror of
https://github.com/famedly/ansible-collection-base
synced 2024-11-10 06:24:17 +00:00
chore(redis): set acl if username is specified
This commit is contained in:
parent
3dd727b7ed
commit
5ed5856a6d
1 changed files with 4 additions and 0 deletions
|
@ -790,6 +790,10 @@ acllog-max-len 128
|
|||
# AUTH <password> as usually, or more explicitly with AUTH default <password>
|
||||
# if they follow the new protocol: both will work.
|
||||
|
||||
{% if redis_user and redis_secret %}
|
||||
user {{ redis_user }} on +@all ~* >{{ redis_secret }}
|
||||
{% endif %}
|
||||
|
||||
{% if redis_secret %}
|
||||
requirepass {{ redis_secret }}
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in a new issue