fix linter

This commit is contained in:
nd 2021-07-17 02:12:44 +02:00
parent d88b0dc089
commit a9cd8b7c8e
No known key found for this signature in database
GPG key ID: 21B5CD4DEE3670E9

View file

@ -22,7 +22,7 @@
recurse: True
- name: set admin password
command:
command: # noqa no-changed-when
argv:
- grafana-cli
- admin
@ -37,7 +37,11 @@
- name: update all grafana plugins
tags: update
command: grafana-cli plugins update-all
command: # noqa no-changed-when
argv:
- grafana-cli
- plugins
- update-all
notify: restart grafana
- name: copy grafana config
@ -72,6 +76,7 @@
- name: create data sources
loop: "{{ grafana.datasources|dict2items }}"
no_log: True
grafana_datasource:
name: "{{ item.key }}"
grafana_url: "{{ grafana.config.root_url|d('http://127.0.0.1') }}"
@ -87,6 +92,7 @@
- name: import dashboards
loop: "{{ grafana.dashboards|dict2items }}"
no_log: True
grafana_dashboard:
grafana_url: "{{ grafana.config.root_url|d('http://127.0.0.1') }}"
grafana_user: "admin"