dashboard.yml 924 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. ---
  2. # tasks/CentOS/dashboard.yml: Deployment of the Uchiwa dashboard
  3. # Specific to CentOS
  4. - include_vars: "{{ ansible_distribution }}.yml"
  5. tags: dashboard
  6. - name: Ensure Uchiwa is installed
  7. tags: dashboard
  8. package:
  9. name: uchiwa
  10. state: present
  11. when: not se_enterprise
  12. - name: Ensure Sensu Enterprise Dashboard is installed
  13. tags: dashboard
  14. package:
  15. name: "{{ sensu_enterprise_dashboard_package }}"
  16. state: present
  17. when: se_enterprise
  18. - name: Deploy Uchiwa config
  19. tags: dashboard
  20. template:
  21. src: uchiwa_config.json.j2
  22. dest: "{{ sensu_config_path }}/uchiwa.json"
  23. when: not se_enterprise
  24. notify:
  25. - restart uchiwa service
  26. - name: Deploy Sensu Enterprise Dashboard
  27. tags: dashboard
  28. template:
  29. src: sensu_enterprise_dashboard_config.json.j2
  30. dest: "{{ sensu_config_path}}/dashboard.json"
  31. when: se_enterprise
  32. notify:
  33. - restart sensu-enterprise-dashboard service