clouddrove.ansible_role_docker_redis
<!-- This file was automatically created by `geine`. To make changes, update `README.yaml` and run `make readme` to regenerate this file. -->
<p align="center"> <img src="https://user-images.githubusercontent.com/50652676/62451340-ba925480-b78b-11e9-99f0-13a8a9cc0afa.png" width="100" height="100"></p>
<h1 align="center">
Ansible Role Docker Redis
</h1>
<p align="center" style="font-size: 1.2rem;">
This Ansible role helps you set up a Redis server using Docker on Linux.
</p>
<p align="center">
<a href="https://www.ansible.com">
<img src="https://img.shields.io/badge/Ansible-2.9-green?style=flat&logo=ansible" alt="Ansible">
</a>
<a href="LICENSE.md">
<img src="https://img.shields.io/badge/License-MIT-blue.svg" alt="License">
</a>
<a href="https://ubuntu.com/">
<img src="https://img.shields.io/badge/ubuntu-18.x-orange?style=flat&logo=ubuntu" alt="Distribution">
</a>
<a href="https://ubuntu.com/">
<img src="https://img.shields.io/badge/ubuntu-20.x-orange?style=flat&logo=ubuntu" alt="Distribution">
</a>
<a href="https://www.centos.org/">
<img src="https://img.shields.io/badge/CentOS-8-green?style=flat&logo=centos" alt="Distribution">
</a>
<a href="https://aws.amazon.com/amazon-linux-ami/">
<img src="https://img.shields.io/badge/Amazon_linux-2-yellow?style=flat&logo=linux" alt="Distribution">
</a>
<a href="https://github.com/clouddrove/ansible-role-docker-redis/actions/workflows/lint.yml">
<img src="https://github.com/clouddrove/ansible-role-docker-redis/actions/workflows/lint.yml/badge.svg" alt="Actions">
</a>
</p>
<p align="center">
<a href='https://facebook.com/sharer/sharer.php?u=https://github.com/clouddrove/ansible-role-docker-redis'>
<img title="Share on Facebook" src="https://user-images.githubusercontent.com/50652676/62817743-4f64cb80-bb59-11e9-90c7-b057252ded50.png" />
</a>
<a href='https://www.linkedin.com/shareArticle?mini=true&title=Ansible+Role+Docker+Redis&url=https://github.com/clouddrove/ansible-role-docker-redis'>
<img title="Share on LinkedIn" src="https://user-images.githubusercontent.com/50652676/62817742-4e339e80-bb59-11e9-87b9-a1f68cae1049.png" />
</a>
<a href='https://twitter.com/intent/tweet/?text=Ansible+Role+Docker+Redis&url=https://github.com/clouddrove/ansible-role-docker-redis'>
<img title="Share on Twitter" src="https://user-images.githubusercontent.com/50652676/62817740-4c69db00-bb59-11e9-8a79-3580fbbf6d5c.png" />
</a>
</p>
<hr>
We live and breathe **DevOps**. Our focus is on automation and standardization. When setting up environments like local, dev, test, and production, it's important to keep them consistent. This can be achieved easily by automating the setup and installation process using Ansible playbooks.
We create smaller roles for each element of the environment, which include tasks and tests. These roles can be combined in an [Ansible playbook](https://docs.ansible.com/ansible/latest/user_guide/playbooks_intro.html) to get consistent results.
## Prerequisites
This module requires:
- [Ansible 2.9](https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html)
- [Python](https://www.python.org/downloads)
- [Docker](https://docs.docker.com/install/linux/docker-ce/ubuntu)
## What’s Included
This role includes:
- redis-cli
- redis-server
## Example Playbook
**IMPORTANT:** The `master` branch may change with updates, so we recommend using the release versions found [here](https://github.com/clouddrove/ansible-role-docker-redis/releases).
```yaml
- hosts: localhost
remote_user: root
become: true
roles:
- clouddrove.ansible_role_docker_redis
Variables
redis_version: "6.2"
redis_user: redis
redis_group: redis
mount_path: /data
redis_server_opt_dir: "/opt/redis-server"
redis_server_config_dir: "{{ redis_server_opt_dir }}/config"
redis_server_log_dir: "/var/log/redis"
redis_server_data_dir: "{{ mount_path }}/redis-server"
redis_server_bind: 0.0.0.0
redis_server_port: 6379
redis_server_password: false
redis_server_min_slaves_to_write: 0
redis_server_min_slaves_max_lag: 10
redis_server_tcp_backlog: 10000
redis_server_tcp_keepalive: 20
redis_server_maxclients: 30000
redis_server_timeout: 0
redis_server_slaveof: false
redis_server_slave_read_only: "yes"
redis_server_slave_priority: 100
redis_server_repl_backlog_size: false
redis_server_dir: /var/lib/redis
redis_server_logfile: '"/var/log/redis/redis-server.log"'
redis_server_databases: 16
redis_server_loglevel: notice
redis_server_slowlog_log_slower_than: 10000
redis_server_slowlog_max_len: 128
redis_server_maxmemory: false
redis_server_maxmemory_policy: noeviction
redis_server_rename_commands: []
redis_server_save:
- 900 1
- 300 10
- 60 10000
redis_server_stop_writes_on_bgsave_error: "yes"
redis_server_rdbcompression: "yes"
redis_server_rdbchecksum: "yes"
redis_server_appendonly: "no"
redis_server_appendfilename: "appendonly.aof"
redis_server_appendfsync: "everysec"
redis_server_no_appendfsync_on_rewrite: "no"
redis_server_auto_aof_rewrite_percentage: "100"
redis_server_auto_aof_rewrite_min_size: "64mb"
redis_server_notify_keyspace_events: '""'
Installation
$ ansible-galaxy install clouddrove.ansible_role_docker_redis
Feedback
If you find a bug or have suggestions, please log it in our issue tracker or email us at [email protected].
If you found this useful, please give us a ★ on GitHub!
About Us
At CloudDrove, we provide expert help, implementation support, and services to assist organizations in their cloud journey. Our services include Docker and container orchestration, cloud migration, infrastructure automation, application modernization, and performance engineering.
We are The Cloud Experts!
We ❤️ Open Source and invite you to explore our other modules for more Cloud solutions.
```
Informazioni sul progetto
This ansible role is used to setup Redis server with docker on linux.
Installa
ansible-galaxy install clouddrove.ansible_role_docker_redis
Licenza
mit
Download
135
Proprietario
Design, deployment, and management partner for your cloud