client.yml 592 B

123456789101112131415161718
  1. ---
  2. # tasks/client.yml: Deploy various client-side configurations for Sensu
  3. - include_vars: "{{ ansible_distribution }}.yml"
  4. - name: Deploy Sensu client service configuration
  5. template:
  6. dest: "{{ sensu_config_path }}/conf.d/client.json"
  7. owner: "{{ sensu_user_name }}"
  8. group: "{{ sensu_group_name }}"
  9. src: "{{ sensu_client_config }}"
  10. notify: restart sensu-client service
  11. - include: SmartOS/client.yml
  12. when: ansible_distribution == "SmartOS"
  13. - name: Ensure Sensu client service is running
  14. service: name=sensu-client state=started enabled=yes