ansible-role-nextcloud/tasks/redis.yml
2023-10-25 22:03:39 +02:00

23 lines
763 B
YAML

---
- name: "Redis | Aktiviere Socket"
ansible.builtin.lineinfile:
path: "{{ redis_config_file }}"
regexp: '^# unixsocket /run/redis/redis-server.sock'
line: 'unixsocket /run/redis/redis-server.sock'
- name: "Redis | Setze Socket-Berechtigungen"
ansible.builtin.lineinfile:
path: "{{ redis_config_file }}"
regexp: '^# unixsocketperm 700'
line: 'unixsocketperm 770'
- name: "Redis | Ermittle Anzahl der NC-Instanzen"
ansible.builtin.set_fact:
instances_number: "{{ nextcloud_instances | length }}"
- name: "Redis | Konfiguriere Anzahl der Datenbanken"
ansible.builtin.lineinfile:
path: "{{ redis_config_file }}"
regexp: '^databases 16$'
line: 'databases {{ instances_number }}'
when: instances_number|int <= 16