2020-05-12 19:18:24 +02:00
|
|
|
# General
|
|
|
|
redis_packages:
|
2022-02-22 10:08:35 +01:00
|
|
|
Alpine:
|
|
|
|
- redis
|
|
|
|
Archlinux:
|
|
|
|
- redis
|
|
|
|
Debian:
|
|
|
|
- redis-server
|
2020-05-12 19:18:24 +02:00
|
|
|
Ubuntu:
|
|
|
|
- redis-server
|
|
|
|
openSUSE Leap:
|
|
|
|
- redis
|
|
|
|
Fedora:
|
|
|
|
- redis
|
|
|
|
CentOS:
|
|
|
|
- redis
|
|
|
|
FreeBSD:
|
|
|
|
- redis
|
|
|
|
|
|
|
|
redis_bin:
|
2022-02-22 10:08:35 +01:00
|
|
|
Alpine: /usr/bin/redis-server
|
|
|
|
Archlinux: /usr/bin/redis-server
|
|
|
|
Debian: /usr/bin/redis-server
|
2020-05-12 19:18:24 +02:00
|
|
|
Ubuntu: /usr/bin/redis-server
|
|
|
|
openSUSE Leap: /usr/sbin/redis-server
|
|
|
|
Fedora: /usr/bin/redis-server
|
|
|
|
CentOS: /usr/bin/redis-server
|
|
|
|
FreeBSD: /usr/local/bin/redis-server
|
|
|
|
|
2021-11-16 07:30:41 +01:00
|
|
|
redis_module: redis
|
2020-05-12 19:18:24 +02:00
|
|
|
|
|
|
|
redis_password: PASS
|
|
|
|
|
2021-06-24 22:33:29 +02:00
|
|
|
old_redis: >-
|
|
|
|
{{
|
|
|
|
(ansible_distribution == 'CentOS' and ansible_distribution_major_version|int <= 7) or
|
|
|
|
(ansible_distribution == 'Ubuntu' and ansible_distribution_major_version|int <= 18) or
|
|
|
|
(ansible_os_family == 'FreeBSD' and ansible_distribution_major_version|int <= 12)
|
|
|
|
}}
|
|
|
|
|
2020-05-12 19:18:24 +02:00
|
|
|
# Master
|
|
|
|
master_port: 6379
|
|
|
|
master_conf: /etc/redis-master.conf
|
|
|
|
master_datadir: /var/lib/redis-master
|
|
|
|
master_logdir: /var/log/redis-master
|
|
|
|
|
2021-06-24 22:33:29 +02:00
|
|
|
# Replica
|
|
|
|
replica_port: 6380
|
|
|
|
replica_conf: /etc/redis-replica.conf
|
|
|
|
replica_datadir: /var/lib/redis-replica
|
|
|
|
replica_logdir: /var/log/redis-replica
|