Skip to content

HanXHX/ansible-redis

Repository files navigation

Redis Ansible

Ansible Galaxy Build Status

Install and configure Redis. Manage replication.

Managed OS

OS Release Status
Debian Stretch (9) ✔️
Debian Buster (10) ✔️
Debian Bullseye (11) ✔️

Requirements

  • If you want to install Redis from backports, you must use add this repository.
  • If redis is already installed by hand (or other process). Please uninstall and purge configuration files. This role uses default config file and overwrite config in another file.

Role Variables

  • Default config file is defined in default vars.
  • redis_apt_backports: set true to install Redis from backports (default is false).
  • redis_ulimit: manage ulimit in startup script
  • redis_apt_target: target used by apt module. DO NOT EDIT! You must edit redis_apt_backports

Dependencies

None.

Example Playbook

Simple

- hosts: servers
  roles:
     - { role: HanXHX.redis }

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 helped you, or if you’ve used them for your projects, feel free to buy me some 🍻

  • Bitcoin: 1BQwhBeszzWbUTyK4aUyq3SRg7rBSHcEQn
  • Ethereum: 0x63abe6b2648fd892816d87a31e3d9d4365a737b5
  • Litecoin: LeNDw34zQLX84VvhCGADNvHMEgb5QyFXyD
  • Monero: 45wbf7VdQAZS5EWUrPhen7Wo4hy7Pa7c7ZBdaWQSRowtd3CZ5vpVw5nTPphTuqVQrnYZC72FXDYyfP31uJmfSQ6qRXFy3bQ

No crypto-currency? ⭐ the project is also a way of saying thank you! 😎

Author Information

  • Twitter: @hanxhx_
  • All issues, pull-requests are welcome :)