summaryrefslogtreecommitdiff
path: root/roles/redis/server/tasks/main.yml
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2024-07-15 22:10:36 +0200
committerChristian Pointner <equinox@spreadspace.org>2024-07-15 22:10:36 +0200
commit9af9c9f8c008b1c0e6c8779b75cccf8990f0ed8c (patch)
treeeaec1f1002a2817bf4fc6d1a81c00aab224b7257 /roles/redis/server/tasks/main.yml
parentadd some module configs for rspamd (diff)
add minimalistc redis-server role
Diffstat (limited to 'roles/redis/server/tasks/main.yml')
-rw-r--r--roles/redis/server/tasks/main.yml14
1 files changed, 14 insertions, 0 deletions
diff --git a/roles/redis/server/tasks/main.yml b/roles/redis/server/tasks/main.yml
new file mode 100644
index 00000000..8114bced
--- /dev/null
+++ b/roles/redis/server/tasks/main.yml
@@ -0,0 +1,14 @@
+---
+- name: install redis-server packages
+ apt:
+ name:
+ - redis-server
+ state: present
+
+- name: configure legacy authentication password
+ when: redis_server_legacy_auth_password is defined
+ lineinfile:
+ regexp: '^#?\s*requirepass\s'
+ line: requirepass {{ redis_server_legacy_auth_password }}
+ path: /etc/redis/redis.conf
+ notify: restart redis-server