dashboard.yml 661 B

12345678910111213141516171819202122
  1. ---
  2. # tasks/Debian/dashboard.yml: Deployment of the Uchiwa dashboard
  3. # Specific to Debian
  4. - include_vars: "{{ ansible_distribution }}.yml"
  5. - name: Retrieve the Uchiwa deb package
  6. get_url:
  7. url: "{{ uchiwa_pkg_download_url }}"
  8. dest: "{{ uchiwa_pkg_download_path }}"
  9. sha256sum: "{{ uchiwa_pkg_download_sha256sum }}"
  10. register: uchiwa_deb
  11. - name: Install Uchiwa from the retrieved deb package
  12. apt: deb={{ uchiwa_pkg_download_path }}
  13. when: uchiwa_deb|changed
  14. - name: Deploy Uchiwa config
  15. template:
  16. src: uchiwa_config.json.j2
  17. dest: "{{ sensu_config_path }}/uchiwa.json"
  18. notify: restart uchiwa service