James Tombleson
b7facd7394
Added Sensu Moved default role downloads to ./roles Added unattended-upgrades
26 lines
544 B
YAML
26 lines
544 B
YAML
---
|
|
# tasks/FreeBSD/redis.yml: Deploy redis
|
|
# Specific to FreeBSD
|
|
|
|
- name: Include ansible_distribution vars
|
|
include_vars:
|
|
file: "{{ ansible_distribution }}.yml"
|
|
tags: redis
|
|
|
|
- name: Ensure redis is installed
|
|
tags: redis
|
|
pkgng:
|
|
name: "{{ sensu_redis_pkg_name }}"
|
|
state: "{{ sensu_redis_pkg_state }}"
|
|
|
|
- name: Ensure redis binds to accessible IP
|
|
tags: redis
|
|
lineinfile:
|
|
dest: /usr/local/etc/redis.conf
|
|
regexp: '^bind'
|
|
line: 'bind 0.0.0.0'
|
|
notify: restart redis service
|
|
|
|
- meta: flush_handlers
|
|
tags: redis
|