DEBOPS.MEMCACHED(5)

NAME
debops.memcached - Manage Memcached service using Ansible

SYNOPSIS

debops service/memcached [--limit group,host,...] [--diff] [--check] [--tags tag1,tag2,...] [--skip-tags tag1,tag2,...] [<ansible-playbook options>] ...

DESCRIPTION

memcached <https://memcached.org/> is a cache daemon which keeps its data in RAM. It can be used by other applications to speed up slow operations on the databases/data stores.

GETTING STARTED

  Example inventory

To install the memcached service on a host, you can add it in the [debops_service_memcached] Ansible inventory group:

[debops_service_memcached]
hostname

  Example playbook

If you are using this role without DebOps, here's an example Ansible playbook that uses the debops.memcached role:

---
- name: Manage memcached server
  collections: [ 'debops.debops', 'debops.roles01',
                 'debops.roles02', 'debops.roles03' ]
  hosts: [ 'debops_service_memcached' ]
  become: True
  environment: '{{ inventory__environment | d({})
                   | combine(inventory__group_environment | d({}))
                   | combine(inventory__host_environment  | d({})) }}'
  roles:
    - role: etc_services
      tags: [ 'role::etc_services', 'skip::etc_services' ]
      etc_services__dependent_list:
        - '{{ memcached__etc_services__dependent_list }}'
    - role: ferm
      tags: [ 'role::ferm', 'skip::ferm' ]
      ferm__dependent_rules:
        - '{{ memcached__ferm__dependent_rules }}'
    - role: memcached
      tags: [ 'role::memcached', 'skip::memcached' ]

  Ansible tags

You can use Ansible --tags or --skip-tags parameters to limit what tasks are performed during Ansible run. This can be used after host is first configured to speed up playbook execution, when you are sure that most of the configuration has not been changed.

Available role tags:

role::memcached
    Main role tag, should be used in the playbook to execute all of the role tasks as well as role dependencies.

AUTHOR
Maciej Delmanowski

COPYRIGHT
2014-2022, Maciej Delmanowski, Nick Janetakis, Robin Schneider and others