Skip to content

Commit

Permalink
Separate out Grafana RabbitMQ dashboard definition (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
kvelarde-itential authored Oct 23, 2024
1 parent 04a09cb commit ee3640c
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions roles/grafana/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,25 @@
owner: "{{ grafana_user }}"
mode: "0644"

- name: Upload grafana dashboard definitions
- name: Upload grafana dashboard default definitions
ansible.builtin.copy:
src: definitions/
src: definitions/default/
dest: "{{ grafana_install_dir }}/provisioning/dashboards/definitions/"
directory_mode: "0755"
group: "{{ grafana_group }}"
owner: "{{ grafana_user }}"
mode: "0644"

- name: Upload grafana dashboard RabbitMQ definitions
ansible.builtin.copy:
src: definitions/rabbitmq/
dest: "{{ grafana_install_dir }}/provisioning/dashboards/definitions/"
directory_mode: "0755"
group: "{{ grafana_group }}"
owner: "{{ grafana_user }}"
mode: "0644"
when: "'rabbitmq' in groups"

- name: Open Port on FirewallD Public Zone
ansible.posix.firewalld:
port: "{{ grafana_port }}/tcp"
Expand Down

0 comments on commit ee3640c

Please sign in to comment.