2023-03-03 09:53:02 +01:00
|
|
|
---
|
|
|
|
# user and group creation
|
2023-03-10 06:45:00 +01:00
|
|
|
- name: Configure user groups
|
2023-03-03 09:53:02 +01:00
|
|
|
ansible.builtin.import_tasks: install/user-group.yaml
|
|
|
|
|
|
|
|
# directory creation
|
2023-03-10 06:45:00 +01:00
|
|
|
- name: Configure directories
|
2023-03-03 09:53:02 +01:00
|
|
|
ansible.builtin.import_tasks: install/directories.yaml
|
|
|
|
|
|
|
|
# download and install agent
|
2023-03-10 06:45:00 +01:00
|
|
|
- name: Download and install Grafana Agent
|
2023-03-03 09:53:02 +01:00
|
|
|
ansible.builtin.import_tasks: install/download-install.yaml
|
|
|
|
when: (grafana_agent_local_binary_file is not defined) or (grafana_agent_local_binary_file | length == 0)
|
|
|
|
|
|
|
|
# local install of agent
|
2023-03-10 06:45:00 +01:00
|
|
|
- name: Local install of Grafana Agent
|
2023-03-03 09:53:02 +01:00
|
|
|
ansible.builtin.import_tasks:
|
|
|
|
file: install/local-install.yaml
|
|
|
|
when: __grafana_agent_local_install
|