https://github.com/thienngho/ansible-redis-roles
https://github.com/thienngho/ansible-redis-roles
ansible molecule redis
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/thienngho/ansible-redis-roles
- Owner: thienngho
- License: apache-2.0
- Created: 2018-07-02T08:37:56.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-10-19T08:52:18.000Z (over 7 years ago)
- Last Synced: 2025-06-08T10:41:55.618Z (about 1 year ago)
- Topics: ansible, molecule, redis
- Language: Python
- Size: 28.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/thienngho/ansible-redis-roles)
Role Name
=========
Install redis server.
Requirements
------------
An install Ubuntu server.
Role Variables
--------------
Listen ip:port
redis_port: 6379
redis_address: 127.0.0.1
Connection timeout
redis_timeout: 300
Logging
redis_loglevel: "notice"
redis_logfile: /var/log/redis/redis-server.log
Database count
redis_databases: 16
Dependencies
------------
- Molecule
- Docker
Example Playbook
----------------
- hosts: servers
- import_role:
name: redis
vars:
redis_address: "{{ hostvars[groups['redisservers'][0]]['ansible_default_ipv4']['address'] }}"
Test role with Molecule
```
molecule test
```