{"id":13752903,"url":"https://github.com/geerlingguy/ansible-role-redis","last_synced_at":"2025-04-05T01:08:39.956Z","repository":{"id":14763514,"uuid":"17484900","full_name":"geerlingguy/ansible-role-redis","owner":"geerlingguy","description":"Ansible Role - Redis","archived":false,"fork":false,"pushed_at":"2024-08-09T18:10:44.000Z","size":53,"stargazers_count":253,"open_issues_count":5,"forks_count":196,"subscribers_count":12,"default_branch":"master","last_synced_at":"2024-10-10T04:06:31.269Z","etag":null,"topics":["ansible","cache","key-value","memcached","redis","role"],"latest_commit_sha":null,"homepage":"https://galaxy.ansible.com/geerlingguy/redis/","language":"Jinja","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/geerlingguy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"geerlingguy","patreon":"geerlingguy"}},"created_at":"2014-03-06T16:47:43.000Z","updated_at":"2024-10-02T13:00:35.000Z","dependencies_parsed_at":"2024-10-25T22:41:43.810Z","dependency_job_id":null,"html_url":"https://github.com/geerlingguy/ansible-role-redis","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geerlingguy%2Fansible-role-redis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geerlingguy%2Fansible-role-redis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geerlingguy%2Fansible-role-redis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geerlingguy%2Fansible-role-redis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/geerlingguy","download_url":"https://codeload.github.com/geerlingguy/ansible-role-redis/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247271532,"owners_count":20911587,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible","cache","key-value","memcached","redis","role"],"created_at":"2024-08-03T09:01:12.361Z","updated_at":"2025-04-05T01:08:39.935Z","avatar_url":"https://github.com/geerlingguy.png","language":"Jinja","funding_links":["https://github.com/sponsors/geerlingguy","https://patreon.com/geerlingguy"],"categories":["Others","role"],"sub_categories":[],"readme":"# Ansible Role: Redis\n\n[![CI](https://github.com/geerlingguy/ansible-role-php-redis/actions/workflows/ci.yml/badge.svg)](https://github.com/geerlingguy/ansible-role-php-redis/actions/workflows/ci.yml)\n\nInstalls [Redis](http://redis.io/) on Linux.\n\n## Requirements\n\nOn RedHat-based distributions, requires the EPEL repository (you can simply add the role `geerlingguy.repo-epel` to install ensure EPEL is available).\n\n## Role Variables\n\n```yaml\nredis_enablerepo: epel\n```\n\n(Used only on RHEL/CentOS) The repository to use for Redis installation.\n\nAvailable variables are listed below, along with default values (see `defaults/main.yml`):\n\n```yaml\nredis_port: 6379\nredis_bind_interface: 127.0.0.1\n```\n\nPort and interface on which Redis will listen. Set the interface to `0.0.0.0` to listen on all interfaces.\n\n```yaml\nredis_unixsocket: ''\n```\n\nIf set, Redis will also listen on a local Unix socket.\n\n```yaml\nredis_timeout: 300\n```\n\nClose a connection after a client is idle `N` seconds. Set to `0` to disable timeout.\n\n```yaml\nredis_loglevel: \"notice\"\nredis_logfile: /var/log/redis/redis-server.log\n```\n\nLog level and log location (valid levels are `debug`, `verbose`, `notice`, and `warning`).\n\n```yaml\nredis_databases: 16\n```\n\nThe number of Redis databases.\n\n```yaml\n# Set to an empty set to disable persistence (saving the DB to disk).\nredis_save:\n  - 900 1\n  - 300 10\n  - 60 10000\n```\n\nSnapshotting configuration; setting values in this list will save the database to disk if the given number of seconds (e.g. `900`) and the given number of write operations (e.g. `1`) have occurred.\n\n```yaml\nredis_rdbcompression: \"yes\"\nredis_dbfilename: dump.rdb\nredis_dbdir: /var/lib/redis\n```\n\nDatabase compression and location configuration.\n\n```yaml\n    redis_maxmemory: 0\n```\n\nLimit memory usage to the specified amount of bytes. Leave at 0 for unlimited.\n\n```yaml\nredis_maxmemory_policy: \"noeviction\"\n```\n\nThe method to use to keep memory usage below the limit, if specified. See [Using Redis as an LRU cache](http://redis.io/topics/lru-cache).\n\n```yaml\nredis_maxmemory_samples: 5\n```\n\nNumber of samples to use to approximate LRU. See [Using Redis as an LRU cache](http://redis.io/topics/lru-cache).\n\n```yaml\nredis_appendonly: \"no\"\n```\n\nThe appendonly option, if enabled, affords better data durability guarantees, at the cost of slightly slower performance.\n\n```yaml\nredis_appendfsync: \"everysec\"\n```\n\nValid values are `always` (slower, safest), `everysec` (happy medium), or `no` (let the filesystem flush data when it wants, most risky).\n\n```yaml\n# Add extra include files for local configuration/overrides.\nredis_includes: []\n```\n\nAdd extra include file paths to this list to include more/localized Redis configuration.\n\nThe redis package name for installation via the system package manager. Defaults to `redis-server` on Debian and `redis` on RHEL.\n\n```yaml\nredis_package_name: \"redis-server\"\n```\n\n(Default for RHEL shown) The redis package name for installation via the system package manager. Defaults to `redis-server` on Debian and `redis` on RHEL.\n\n```yaml\nredis_requirepass: \"\"\n```\n\nSet a password to require authentication to Redis. You can generate a strong password using `echo \"my_password_here\" | sha256sum`.\n\n```yaml\nredis_disabled_commands: []\n```\n\nFor extra security, you can disable certain Redis commands (this is especially important if Redis is publicly accessible). For example:\n\n```yaml\nredis_disabled_commands:\n  - FLUSHDB\n  - FLUSHALL\n  - KEYS\n  - PEXPIRE\n  - DEL\n  - CONFIG\n  - SHUTDOWN\n```\n\n```yaml\nredis_extra_config: |-\n  # Extra redis configuration lines can be added here.\n```\n\nExtra Redis configuration lines that will be appended to the end of the `redis.conf` file.\n\n## Dependencies\n\nNone.\n\n## Example Playbook\n\n```yaml\n- hosts: all\n  roles:\n    - role: geerlingguy.redis\n```\n\n## License\n\nMIT / BSD\n\n## Author Information\n\nThis role was created in 2014 by [Jeff Geerling](https://www.jeffgeerling.com/), author of [Ansible for DevOps](https://www.ansiblefordevops.com/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeerlingguy%2Fansible-role-redis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeerlingguy%2Fansible-role-redis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeerlingguy%2Fansible-role-redis/lists"}