Ansible/roles/sensu.sensu/tasks/SmartOS/server.yml
James Tombleson b7facd7394 Role Adjustments
Added Sensu
Moved default role downloads to ./roles
Added unattended-upgrades
2019-04-29 07:08:11 -07:00

33 lines
788 B
YAML

---
# 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