grafana-ansible-collection/roles/grafana_agent/tasks/install/directories.yaml

27 lines
757 B
YAML
Raw Normal View History

2023-03-03 09:53:02 +01:00
---
2023-03-10 06:45:00 +01:00
- name: Create install directories
2023-03-03 09:53:02 +01:00
block:
2023-03-10 06:45:00 +01:00
- name: Create Grafana Agent install directory
2023-03-03 09:53:02 +01:00
ansible.builtin.file:
path: "{{ grafana_agent_install_dir }}"
state: directory
owner: root
group: "{{ grafana_agent_user_group }}"
mode: 0770
2023-03-10 06:45:00 +01:00
- name: Create Grafana Agent conf directory
2023-03-03 09:53:02 +01:00
ansible.builtin.file:
path: "{{ grafana_agent_config_dir }}"
state: directory
owner: root
group: "{{ grafana_agent_user_group }}"
mode: 0770
2023-03-10 06:45:00 +01:00
- name: Create Grafana Agent data directory
2023-03-03 09:53:02 +01:00
ansible.builtin.file:
path: "{{ grafana_agent_data_dir }}"
state: directory
owner: root
group: "{{ grafana_agent_user_group }}"
2023-03-10 06:41:05 +01:00
mode: 0775