HanXHX.redis
Redis Ansible
This guide will help you install and set up Redis, including managing replication.
Supported Operating Systems
OS Version | Status |
---|---|
Debian Stretch (9) | :heavy_check_mark: |
Debian Buster (10) | :heavy_check_mark: |
Debian Bullseye (11) | :heavy_check_mark: |
Requirements
- To install Redis from backports, you need to add the appropriate repository.
- If Redis was installed manually or by another tool, please uninstall it and remove its configuration files before using this role. This role will use a default configuration file and overwrite any existing configurations.
Role Variables
- The default configuration file is set in default vars.
redis_apt_backports
: set to true if you want to install Redis from backports (default is false).redis_ulimit
: manage the limit for system resources in the startup script.redis_apt_target
: this is the target for the apt module. Do not edit! You should only changeredis_apt_backports
.
Dependencies
None.
Example Playbook
Simple Example
- hosts: servers
roles:
- { role: HanXHX.redis }
Example with Redis from Backports
- hosts: servers
pre_tasks:
- apt_repository: repo='deb http://httpredir.debian.net/debian {{ ansible_distribution_release }}-backports main' state=present
roles:
- { role: HanXHX.redis, redis_apt_backports: true }
License
GPLv2
Donation
If this code has helped you or you’ve used it in your projects, feel free to buy me a drink 😊:
- Bitcoin:
1BQwhBeszzWbUTyK4aUyq3SRg7rBSHcEQn
- Ethereum:
0x63abe6b2648fd892816d87a31e3d9d4365a737b5
- Litecoin:
LeNDw34zQLX84VvhCGADNvHMEgb5QyFXyD
- Monero:
45wbf7VdQAZS5EWUrPhen7Wo4hy7Pa7c7ZBdaWQSRowtd3CZ5vpVw5nTPphTuqVQrnYZC72FXDYyfP31uJmfSQ6qRXFy3bQ
If you don't use cryptocurrencies, just giving a ⭐️ to the project is a great way to say thank you! 😎
Author Information
- Twitter: @hanxhx_
- All issues and pull requests are welcome! 😊