2020-12-03 23:54:55 +01:00
|
|
|
---
|
2021-06-26 11:42:17 +02:00
|
|
|
- name: "redis: Aktiviere Socket"
|
2020-12-03 23:54:55 +01:00
|
|
|
lineinfile:
|
2021-08-07 16:45:32 +02:00
|
|
|
path: "{{ redis_config_file }}"
|
2020-12-03 23:54:55 +01:00
|
|
|
regexp: '^# unixsocket /var/run/redis/redis-server.sock'
|
|
|
|
line: 'unixsocket /var/run/redis/redis-server.sock'
|
|
|
|
|
2021-06-26 11:42:17 +02:00
|
|
|
- name: "redis: Socket-Berechtigungen stetzen"
|
2020-12-03 23:54:55 +01:00
|
|
|
lineinfile:
|
2021-08-07 16:45:32 +02:00
|
|
|
path: "{{ redis_config_file }}"
|
2020-12-03 23:54:55 +01:00
|
|
|
regexp: '^# unixsocketperm 700'
|
|
|
|
line: 'unixsocketperm 770'
|
2021-08-07 16:45:32 +02:00
|
|
|
|
|
|
|
- name: "redis: Ermittle Anzahl der NC-Instanzen"
|
|
|
|
set_fact:
|
2021-08-23 15:39:15 +02:00
|
|
|
instances_number: "{{ instances | length }}"
|
2021-08-07 16:45:32 +02:00
|
|
|
|
|
|
|
- name: "redis: Konfiguriere Anzahl der Datenbanken"
|
|
|
|
lineinfile:
|
|
|
|
path: "{{ redis_config_file }}"
|
|
|
|
regexp: '^databases 16$'
|
|
|
|
line: 'databases {{ instances_number }}'
|
|
|
|
when: instances_number <= 16
|