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
---
- name: Create Install Directories
block:
- name: Create Grafana Agent Install Directory
ansible.builtin.file:
path: "{{ grafana_agent_install_dir }}"
state: directory
owner: root
group: "{{ grafana_agent_user_group }}"
mode: 0770
- name: Create Grafana Agent Conf Directory
ansible.builtin.file:
path: "{{ grafana_agent_config_dir }}"
state: directory
owner: root
group: "{{ grafana_agent_user_group }}"
mode: 0770
- name: Create Grafana Agent Data Directory
ansible.builtin.file:
path: "{{ grafana_agent_data_dir }}"
state: directory
owner: root
group: "{{ grafana_agent_user_group }}"
mode: 0755