client.yml 521 B

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