Ansible/roles/sensu.sensu/tasks/SmartOS/client.yml

24 lines
573 B
YAML
Raw Normal View History

---
# tasks/SmartOS/client.yml: Deploy various client-side configurations for Sensu
# Specific to Joyent SmartOS
- name: Include ansible_distribution vars
include_vars:
file: "{{ ansible_distribution }}.yml"
tags: client
- name: Deploy Sensu client service manifest
tags: client
template:
dest: /opt/local/lib/svc/manifest/sensu-client.xml
src: sensu-client.smartos_smf_manifest.xml.j2
owner: root
group: root
mode: 0644
notify:
- import sensu-client service
- restart sensu-client service
- meta: flush_handlers
tags: client