dashboard.yml 876 B

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