jebovic.memcache
memcache
Install and configure memcache
This role is a part of my OPS project, follow this link to see it in action. OPS provides a lot of stuff, like a vagrant file for development VMs, playbooks for roles orchestration, inventory files, examples for roles configuration, ansible configuration file, and many more.
Compatibility
Tested and approved on :
- Debian jessie (8+)
- Ubuntu Trusty (14.04 LTS)
- Ubuntu Xenial (16.04 LTS)
Role Variables
# Memcached basic configuration
memcache_log_file: /var/log/memcached.log
memcache_memory_size: 64
memcache_port: 11211
memcache_user: memcache
memcache_listen_address: 127.0.0.1
memcache_max_connections: 1024
Example Playbook
- hosts: servers
roles:
- { role: jebovic.memcache }
Example : config
# Increase memcache memory limit to 512M
memcache_memory_size: 512
# Memcache listen server ip, and not only localhost
memcache_listen_address: "{{ ansible_host }}"
Tags
- memcache_config : only update config and restart service
License
MIT
Author Information
Jérémy Baumgarth https://github.com/jebovic
Install
ansible-galaxy install jebovic.memcacheLicense
mit
Downloads
611
Owner
