client.yml 739 B

1234567891011121314151617181920
  1. ---
  2. # tasks/client.yml: Deploy various client-side configurations for Sensu
  3. # Specific to Joyent SmartOS
  4. - include_vars: "{{ item }}"
  5. with_first_found:
  6. - "{{ ansible_distribution }}.yml"
  7. - "{{ ansible_os_family }}.yml"
  8. - default.yml
  9. - name: Deploy Sensu client service manifest
  10. template: dest=/opt/local/lib/svc/manifest/sensu-client.xml
  11. src=sensu-client.smartos_smf_manifest.xml.j2
  12. owner=root group=root mode=644
  13. notify: import sensu-client service
  14. - name: Initial import of Sensu client service
  15. command: /usr/sbin/svccfg import /opt/local/lib/svc/manifest/sensu-client.xml
  16. args:
  17. creates: "/var/svc/log/application-sensu-client:default.log"