2022-09-22 14:38:42 +00:00
|
|
|
---
|
2022-11-25 09:18:32 +00:00
|
|
|
- name: Preflight
|
2023-04-17 09:58:55 +00:00
|
|
|
ansible.builtin.include_tasks:
|
|
|
|
file: preflight.yml
|
|
|
|
apply:
|
|
|
|
tags:
|
|
|
|
- prometheus_configure
|
|
|
|
- prometheus_install
|
|
|
|
- prometheus_run
|
2022-09-22 14:38:42 +00:00
|
|
|
tags:
|
|
|
|
- prometheus_configure
|
|
|
|
- prometheus_install
|
|
|
|
- prometheus_run
|
|
|
|
|
2022-11-25 09:18:32 +00:00
|
|
|
- name: Install
|
|
|
|
ansible.builtin.include_tasks:
|
|
|
|
file: install.yml
|
|
|
|
apply:
|
|
|
|
become: true
|
2023-04-17 09:58:55 +00:00
|
|
|
tags:
|
|
|
|
- prometheus_install
|
2022-09-22 14:38:42 +00:00
|
|
|
tags:
|
|
|
|
- prometheus_install
|
|
|
|
|
2022-11-25 09:18:32 +00:00
|
|
|
- name: Configure
|
|
|
|
ansible.builtin.include_tasks:
|
|
|
|
file: configure.yml
|
|
|
|
apply:
|
|
|
|
become: true
|
2023-04-17 09:58:55 +00:00
|
|
|
tags:
|
|
|
|
- prometheus_configure
|
2022-09-22 14:38:42 +00:00
|
|
|
tags:
|
|
|
|
- prometheus_configure
|
|
|
|
|
2022-09-23 12:07:54 +00:00
|
|
|
- name: Ensure prometheus service is started and enabled
|
2022-09-22 14:38:42 +00:00
|
|
|
become: true
|
2022-09-23 12:07:54 +00:00
|
|
|
ansible.builtin.systemd:
|
2022-09-22 14:38:42 +00:00
|
|
|
daemon_reload: true
|
|
|
|
name: prometheus
|
|
|
|
state: started
|
|
|
|
enabled: true
|
|
|
|
tags:
|
|
|
|
- prometheus_run
|