mirror of
https://github.com/prometheus-community/ansible
synced 2024-11-26 22:00:22 +00:00
2c075e3b15
Signed-off-by: gardar <gardar@users.noreply.github.com>
33 lines
637 B
YAML
33 lines
637 B
YAML
---
|
|
- name: Preflight
|
|
ansible.builtin.include_tasks: preflight.yml
|
|
tags:
|
|
- prometheus_configure
|
|
- prometheus_install
|
|
- prometheus_run
|
|
|
|
- name: Install
|
|
ansible.builtin.include_tasks:
|
|
file: install.yml
|
|
apply:
|
|
become: true
|
|
tags:
|
|
- prometheus_install
|
|
|
|
- name: Configure
|
|
ansible.builtin.include_tasks:
|
|
file: configure.yml
|
|
apply:
|
|
become: true
|
|
tags:
|
|
- prometheus_configure
|
|
|
|
- name: Ensure prometheus service is started and enabled
|
|
become: true
|
|
ansible.builtin.systemd:
|
|
daemon_reload: true
|
|
name: prometheus
|
|
state: started
|
|
enabled: true
|
|
tags:
|
|
- prometheus_run
|