23 lines
692 B
YAML
23 lines
692 B
YAML
---
|
|
- name: "redis: Aktiviere Socket"
|
|
lineinfile:
|
|
path: "{{ redis_config_file }}"
|
|
regexp: '^# unixsocket /var/run/redis/redis-server.sock'
|
|
line: 'unixsocket /var/run/redis/redis-server.sock'
|
|
|
|
- name: "redis: Socket-Berechtigungen stetzen"
|
|
lineinfile:
|
|
path: "{{ redis_config_file }}"
|
|
regexp: '^# unixsocketperm 700'
|
|
line: 'unixsocketperm 770'
|
|
|
|
- name: "redis: Ermittle Anzahl der NC-Instanzen"
|
|
set_fact:
|
|
instances_number: "{{ instances | length }}"
|
|
|
|
- name: "redis: Konfiguriere Anzahl der Datenbanken"
|
|
lineinfile:
|
|
path: "{{ redis_config_file }}"
|
|
regexp: '^databases 16$'
|
|
line: 'databases {{ instances_number }}'
|
|
when: instances_number <= 16
|