aboutsummaryrefslogtreecommitdiffstats
path: root/roles/jails/09_redis/tasks/main.yml
blob: 9e79df17cbe77eb2c088481a6dc6e984a7e6a823 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
- import_role:
    name: jail
    tasks_from: jail_setup

- name: Configure bind address
  lineinfile:
    path: /usr/local/etc/valkey.conf
    line: "bind * -::*"
    regexp: "^bind "
  notify: Restart valkey

- name: Configure protected-mode
  lineinfile:
    path: /usr/local/etc/valkey.conf
    line: "protected-mode yes"
    regexp: "^protected-mode"
  notify: Restart valkey

- name: Configure requirepass
  lineinfile:
    path: /usr/local/etc/valkey.conf
    line: "requirepass {{ valkey_password }}"
    regexp: "^requirepass"
  notify: Restart valkey

- import_role:
    name: jail
    tasks_from: jail_launch