2016-09-29 10:59:13 +02:00
|
|
|
---
|
2016-09-30 09:48:41 +02:00
|
|
|
- name: Redis is installed.
|
2016-09-29 10:59:13 +02:00
|
|
|
apt:
|
|
|
|
name: redis-server
|
2017-01-12 17:37:48 +01:00
|
|
|
state: present
|
2016-09-29 11:19:27 +02:00
|
|
|
tags:
|
2017-01-05 18:21:57 +01:00
|
|
|
- redis
|
|
|
|
- packages
|
2016-09-29 10:59:13 +02:00
|
|
|
|
2016-09-30 09:48:41 +02:00
|
|
|
- name: Redis is configured.
|
2016-09-29 10:59:13 +02:00
|
|
|
template:
|
|
|
|
src: redis.conf.j2
|
|
|
|
dest: "{{ redis_conf_path }}"
|
2017-03-23 16:59:43 +01:00
|
|
|
mode: "0644"
|
2016-09-29 10:59:13 +02:00
|
|
|
notify: restart redis
|
2016-09-29 11:19:27 +02:00
|
|
|
tags:
|
2017-01-05 18:21:57 +01:00
|
|
|
- redis
|
2016-09-29 10:59:13 +02:00
|
|
|
|
2016-09-30 09:48:41 +02:00
|
|
|
- name: Redis is running and enabled on boot.
|
2016-09-29 10:59:13 +02:00
|
|
|
service:
|
|
|
|
name: "{{ redis_daemon }}"
|
|
|
|
enabled: yes
|
|
|
|
state: started
|
2016-09-29 11:19:27 +02:00
|
|
|
tags:
|
2017-01-05 18:21:57 +01:00
|
|
|
- redis
|
2017-06-02 14:25:13 +02:00
|
|
|
|
2017-06-12 15:28:23 +02:00
|
|
|
- name: Is Munin installed
|
|
|
|
stat:
|
|
|
|
path: /etc/munin/plugins
|
|
|
|
register: _munin_installed
|
|
|
|
|
2017-06-02 14:25:13 +02:00
|
|
|
- include: munin.yml
|
2017-06-12 16:37:56 +02:00
|
|
|
when: _munin_installed.stat.exists and _munin_installed.stat.isdir
|