dashboard.yml 977 B

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