Sha256: d8aea4327dc92a37bf7d750014c655d182c3b17db8c4d22d9d20dc9d3e7691a5

Contents?: true

Size: 778 Bytes

Versions: 16

Compression:

Stored size: 778 Bytes

Contents

---
# Include variables and define needed variables.
- name: Include OS-specific variables.
  include_vars: "{{ ansible_os_family }}.yml"

- name: Define memcached_user.
  set_fact:
    memcached_user: "{{ __memcached_user }}"
  when: memcached_user is not defined

# Setup/install tasks.
- include: setup-RedHat.yml
  when: ansible_os_family == 'RedHat'

- include: setup-Debian.yml
  when: ansible_os_family == 'Debian'

# Configure Memcached.
- name: Copy Memcached configuration.
  template:
    src: memcached-{{ ansible_os_family }}.conf.j2
    dest: "{{ memcached_config_file }}"
    owner: root
    group: root
    mode: 0644
  notify: restart memcached

- name: Ensure Memcached is started and set to run on startup.
  service: name=memcached state=started enabled=yes

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
taperole-1.8.2 vendor/geerlingguy.memcached/tasks/main.yml
taperole-1.8.1 vendor/geerlingguy.memcached/tasks/main.yml
taperole-1.8.0 vendor/geerlingguy.memcached/tasks/main.yml
taperole-1.7.1 vendor/geerlingguy.memcached/tasks/main.yml
taperole-1.7.0 vendor/geerlingguy.memcached/tasks/main.yml
taperole-1.6.0 vendor/geerlingguy.memcached/tasks/main.yml
taperole-1.5.5 vendor/geerlingguy.memcached/tasks/main.yml
taperole-1.5.4 vendor/geerlingguy.memcached/tasks/main.yml
taperole-1.5.3 vendor/geerlingguy.memcached/tasks/main.yml
taperole-1.5.2 vendor/geerlingguy.memcached/tasks/main.yml
taperole-1.5.1 vendor/geerlingguy.memcached/tasks/main.yml
taperole-1.5.0 vendor/geerlingguy.memcached/tasks/main.yml
taperole-1.4.3 vendor/geerlingguy.memcached/tasks/main.yml
taperole-1.4.2 vendor/geerlingguy.memcached/tasks/main.yml
taperole-1.4.1 vendor/geerlingguy.memcached/tasks/main.yml
taperole-1.4.0 vendor/geerlingguy.memcached/tasks/main.yml