mirror of https://github.com/ceph/ceph-ansible.git
23 lines
463 B
YAML
23 lines
463 B
YAML
---
|
|
- name: create /etc/grafana and /var/lib/grafana
|
|
file:
|
|
path: "{{ item }}"
|
|
state: directory
|
|
owner: "{{ grafana_uid }}"
|
|
group: "{{ grafana_uid }}"
|
|
recurse: true
|
|
with_items:
|
|
- /etc/grafana
|
|
- /var/lib/grafana
|
|
|
|
- name: include_tasks systemd.yml
|
|
include_tasks: systemd.yml
|
|
|
|
- name: start the grafana-server service
|
|
systemd:
|
|
name: grafana-server
|
|
state: started
|
|
enabled: yes
|
|
daemon_reload: yes
|
|
failed_when: false
|