grafana-ansible-collection/roles/grafana_agent/tasks/preflight.yaml

22 lines
687 B
YAML
Raw Normal View History

2023-03-03 09:53:02 +01:00
---
2023-03-10 06:45:00 +01:00
- name: Preflight variable checks
2023-03-03 09:53:02 +01:00
ansible.builtin.import_tasks: preflight/vars.yaml
2023-03-10 06:45:00 +01:00
- name: Systemd variable checks
2023-03-03 09:53:02 +01:00
ansible.builtin.import_tasks: preflight/systemd.yaml
2023-03-10 06:45:00 +01:00
- name: Install variable checks
2023-03-03 09:53:02 +01:00
ansible.builtin.import_tasks: preflight/install.yaml
2023-03-10 06:45:00 +01:00
- name: Download variable checks
2023-03-03 09:53:02 +01:00
ansible.builtin.import_tasks: preflight/download.yaml
- name: Set whether or not to do the install
ansible.builtin.set_fact:
__grafana_agent_do_install: >-
{{ not __grafana_agent_is_installed.stat.exists or __grafana_agent_installed_version is version_compare(grafana_agent_version, '<') }}
2023-03-10 06:45:00 +01:00
- name: Do install
2023-03-03 09:53:02 +01:00
ansible.builtin.debug:
var: __grafana_agent_do_install