Skip to content

Commit ef5eecf

Browse files
committed
fix grafana datasources
1 parent 0e77b2e commit ef5eecf

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

ansible/monitoring.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,16 @@
8484
# done during fatimage - can't do this in vars block as that is recursive
8585
ansible.builtin.set_fact:
8686
grafana_plugins: "{{ [] if appliances_mode == 'configure' else grafana_plugins }}"
87+
- name: Copy Grafana plugins installed in image into persistent grafana state
88+
ansible.builtin.copy:
89+
remote_src: true
90+
src: /var/lib/grafana/plugins/ # trailing / means copy contents
91+
dest: "{{ grafana_data_dir }}/plugins/"
92+
# below matches what already exists:
93+
owner: root
94+
group: root
95+
mode: '0755'
96+
become: true
8797
- include_role:
8898
name: cloudalchemy.grafana
8999
vars:

0 commit comments

Comments
 (0)