ansible-roles/memcached
Ludovic Poujol aca146adbc
memcached: Fix conditions not properly writen (installation was always in multi-instance mode)
2024-03-11 10:54:36 +01:00
..
defaults Add multi: "" patch 2020-01-09 15:40:46 +01:00
files memcached: multi instance check requires bash instead of sh 2022-09-01 15:48:15 +02:00
handlers Use FQCN 2023-03-20 23:33:19 +01:00
meta Update Galaxy metadata (company, platforms and galaxy_tags) 2021-06-28 15:26:28 +02:00
tasks memcached: Fix conditions not properly writen (installation was always in multi-instance mode) 2024-03-11 10:54:36 +01:00
templates memcached: add tasks for phpmemcachedadmin 2017-06-02 13:47:48 +02:00
tests Add tests for many roles 2017-05-18 15:44:21 +02:00
.kitchen.yml Kitchen: Change base image to evolix/ansible 2017-06-02 08:38:08 -04:00
README.md memcached: improve systemd units management 2018-08-09 17:46:31 +02:00

README.md

Memcached

Installation and basic configuration of memcached

Tasks

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: 127.0.0.1) ;
  • 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 :

roles:

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