Ansible roles by Evolix
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Eric Morino 9e0388c865 Fix task when memcached_instance_name 12 months ago
defaults Add multi: "" patch 1 year ago
files Add systemd template 3 years ago
handlers memcached: add Nagios check for memcached (evoqa #3498) 3 years ago
meta change repositories URL 2 years ago
tasks Fix task when memcached_instance_name 12 months ago
templates memcached: add tasks for phpmemcachedadmin 4 years ago
tests Add tests for many roles 4 years ago
.kitchen.yml Kitchen: Change base image to evolix/ansible 4 years ago memcached: improve systemd units management 3 years ago


Installation and basic configuration of memcached


Minimal configuration is in tasks/main.yml

Available variables

Main variables are :

  • memcached_mem: amount of memory (default: 64) ;
  • memcached_user: running user (default: nobody) ;
  • memcached_port: opened port (default: 11211) ;
  • memcached_bind_interface: interface to listen to (default: ;
  • memcached_connections: number of simultaneous incoming connections (default: 1024) ;
  • memcached_instance_name: use this to set up multiple memcached instances (default: False) ;

The full list of variables (with default values) can be found in defaults/main.yml.

Multiple intances

When using memcached_instance_name variable, you can set up multiple memcached instances :


  • { role: memcached, memcached_instance_name: "instance1" }
  • { role: memcached, memcached_instance_name: "instance2", memcached_port: 11212 }