inmotionhosting.redis

Ansible Molecule Pipeline GPL-3.0 License GitHub stars

InMotion Hosting Ultrastack

Ansible 角色:Redis

模块化的 Ansible 角色,用于部署和配置 Redis。

需求

此 Ansible 角色支持特定以服务器为中心的 Linux 发行版的两个最新稳定版本,并旨在遵循它们的弃用政策。此外,我们将专注于支持每个发行版的两个最新稳定版本,写作时版本如下:

  • CentOS 7.x
  • Debian 10 或更高版本
  • Ubuntu 20.04 LTS 或更高版本
  • AlmaLinux 8.x 或更高版本
  • RockyLinux 8.x 或更高版本

依赖

无。

角色变量

可用的变量如下所示,包含默认值(您也可以查看 defaults/main.yml

变量 定义
redis_conf Redis 配置文件的位置。
redis_conf_bind Redis 将绑定的 IP 地址。
redis_conf_daemonize Redis 是否应作为守护进程运行。
redis_conf_logfile Redis 日志文件的位置。
redis_conf_maxmemory Redis 可以使用的最大内存。
redis_conf_maxmemory_policy 使用的内存管理策略。
redis_conf_pidfile Redis pid 文件的位置。
redis_conf_port 在指定端口上接受连接。
redis_conf_requirepass 登录 Redis 时是否需要密码。
redis_conf_supervised Redis 应该目标的 init 系统。

默认值:systemd
redis_conf_timeout 客户端与 Redis 的连接最大存活时间。
redis_conf_unixsocket Redis 是否应配置为使用 unix socket。
redis_conf_unixsocket_location Redis unix socket 文件的位置。
redis_conf_unixsocket_permissions 设置在 unix socket 文件上的 unix 权限。
redis_daemon Redis 守护进程的名称。

示例 Playbook

- hosts: www
  roles:
    - role: inmotionhosting.redis

许可证

GPLv3

作者信息

InMotion Hosting

关于项目

Modular Ansible Role for deploying and configuring Redis

安装
ansible-galaxy install inmotionhosting.redis
许可证
gpl-3.0
下载
53.2k
拥有者
Offering Private and Public Cloud, Software as a Service, and Web Hosting