dashboard.yml 1004 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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:
  12. - chkconfig
  13. - uchiwa
  14. state: present
  15. when: not se_enterprise
  16. - name: Ensure Sensu Enterprise Dashboard is installed
  17. tags: dashboard
  18. package:
  19. name: "{{ sensu_enterprise_dashboard_package }}"
  20. state: present
  21. when: se_enterprise
  22. - name: Deploy Uchiwa config
  23. tags: dashboard
  24. template:
  25. src: uchiwa_config.json.j2
  26. dest: "{{ sensu_config_path }}/uchiwa.json"
  27. when: not se_enterprise
  28. notify:
  29. - restart uchiwa service
  30. - name: Deploy Sensu Enterprise Dashboard
  31. tags: dashboard
  32. template:
  33. src: sensu_enterprise_dashboard_config.json.j2
  34. dest: "{{ sensu_config_path }}/dashboard.json"
  35. when: se_enterprise
  36. notify:
  37. - restart sensu-enterprise-dashboard service