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

33 lines
788 B
YAML
Raw Normal View History

---
# tasks/SmartOS/server.yml: Deploy the necessary configuration for
# a Sensu 'master' node.
# Specific to SmartOS
- name: Include ansible_distribution vars
include_vars:
file: "{{ ansible_distribution }}.yml"
tags: server
- name: Deploy Sensu server service manifest
tags: server
template:
dest: /opt/local/lib/svc/manifest/sensu-server.xml
src: sensu-server.smartos_smf_manifest.xml.j2
owner: root
group: root
mode: 0644
notify: import sensu-server service
- name: Deploy Sensu API service manifest
tags: server
template:
dest: /opt/local/lib/svc/manifest/sensu-api.xml
src: sensu-api.smartos_smf_manifest.xml.j2
owner: root
group: root
mode: 0644
notify: import sensu-api service
- meta: flush_handlers
tags: server