| 12345678910111213141516171819202122232425262728293031323334 |
- ---
- # tasks/CentOS/dashboard.yml: Deployment of the Uchiwa dashboard
- # Specific to CentOS
- - include_vars: "{{ ansible_distribution }}.yml"
- - name: Ensure Uchiwa is installed
- yum:
- name: uchiwa
- state: present
- when: not se_enterprise
- - name: Ensure Sensu Enterprise Dashboard is installed
- yum:
- name: "{{ sensu_enterprise_dashboard_package }}"
- state: present
- when: se_enterprise
- - name: Deploy Uchiwa config
- template:
- src: uchiwa_config.json.j2
- dest: "{{ sensu_config_path }}/uchiwa.json"
- when: not se_enterprise
- notify:
- - restart uchiwa service
- - name: Deploy Sensu Enterprise Dashboard
- template:
- src: sensu_enterprise_dashboard_config.json.j2
- dest: "{{ sensu_config_path}}/dashboard.json"
- when: se_enterprise
- notify:
- - restart sensu-enterprise-dashboard service
|