summaryrefslogtreecommitdiff
path: root/roles/redis/server/tasks/main.yml
blob: 8114bced60de156f9b2c1649074321864c0a7570 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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