ansible-role-nextcloud/tasks/redis.yml

24 lines
695 B
YAML
Raw Normal View History

2020-12-03 23:54:55 +01: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'
- 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 }}'
2021-10-14 16:09:47 +02:00
when: instances_number|int <= 16