dashboard.yml 1.0 KB

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