client.yml 573 B

1234567891011121314151617181920212223
  1. ---
  2. # tasks/SmartOS/client.yml: Deploy various client-side configurations for Sensu
  3. # Specific to Joyent SmartOS
  4. - name: Include ansible_distribution vars
  5. include_vars:
  6. file: "{{ ansible_distribution }}.yml"
  7. tags: client
  8. - name: Deploy Sensu client service manifest
  9. tags: client
  10. template:
  11. dest: /opt/local/lib/svc/manifest/sensu-client.xml
  12. src: sensu-client.smartos_smf_manifest.xml.j2
  13. owner: root
  14. group: root
  15. mode: 0644
  16. notify:
  17. - import sensu-client service
  18. - restart sensu-client service
  19. - meta: flush_handlers
  20. tags: client