fix server install tasks
This commit is contained in:
parent
b4c5bd0d54
commit
174b541cd5
@ -7,8 +7,10 @@
|
|||||||
|
|
||||||
## prometheus server install
|
## prometheus server install
|
||||||
- name: 'server install'
|
- name: 'server install'
|
||||||
include_tasks: server/grafana-prometheus.yml
|
include_tasks: "server/{{ item }}"
|
||||||
include_tasks: server/grafana-provisioning.yml
|
loop:
|
||||||
|
- grafana-prometheus.yml
|
||||||
|
- grafana-provisioning.yml
|
||||||
when:
|
when:
|
||||||
- prometheus_server_enable == "true"
|
- prometheus_server_enable == "true"
|
||||||
tags:
|
tags:
|
||||||
|
@ -12,6 +12,19 @@
|
|||||||
when: grafana_provisioned_datasources_path is defined
|
when: grafana_provisioned_datasources_path is defined
|
||||||
notify: "grafana-prometheus-restart"
|
notify: "grafana-prometheus-restart"
|
||||||
|
|
||||||
|
- name: "grafana-prometheus | create grafana provisioning directories"
|
||||||
|
file:
|
||||||
|
path: "/opt/docker-compose/grafana-prometheus/{{ item }}"
|
||||||
|
state: directory
|
||||||
|
owner: '1000'
|
||||||
|
group: '1000'
|
||||||
|
mode: '0755'
|
||||||
|
loop:
|
||||||
|
- datasources
|
||||||
|
- dashboards
|
||||||
|
when: grafana_provisioned_datasources_path is not defined
|
||||||
|
notify: "grafana-prometheus-restart"
|
||||||
|
|
||||||
- name: "grafana-prometheus | import grafana provisioned datasources conf"
|
- name: "grafana-prometheus | import grafana provisioned datasources conf"
|
||||||
copy:
|
copy:
|
||||||
src: dashboards/datasources.yaml
|
src: dashboards/datasources.yaml
|
||||||
|
Loading…
x
Reference in New Issue
Block a user