Ansible playbook for deploying, securing, and optimizing a Redis instance
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
images
templates
.gitignore
README.md
Vagrantfile
ansible.cfg
hosts
playbook.yml

README.md

redis-playbook

---

an Ansible playbook for deploying a secured and optimized Redis instance

Based originally on DigitailOcean's guide to deploying a Redis instance:

How to install and configure redis on Ubuntu 16.04

This playbook looks to automate the tedious setup process by performing the following tasks:

  • Update OS with apt-get

  • Install Redis dependencies

  • Install Redis from source (test, make)

  • Configure and secure Redis-as-a-service

    • Create a redis user and group
    • Create data and logging directories
    • Enable Redis socket support (redis-cli -a redis -s /var/run/redis/redis.sock)
  • Optimize Redis

    • Disable Transparent Huge Pages (THP) support
    • Increase TCP backlog
    • Enable low-memory DB saves

Run vagrant up to provision a Redis instance available from your local machine.