mirror of
https://github.com/prometheus-community/ansible
synced 2024-11-26 22:00:22 +00:00
1d98aee69a
Signed-off-by: SuperQ <superq@gmail.com>
38 lines
939 B
YAML
38 lines
939 B
YAML
---
|
|
- name: Gather variables for each operating system
|
|
ansible.builtin.include_vars: "{{ item }}"
|
|
with_first_found:
|
|
- "{{ ansible_distribution | lower }}-{{ ansible_distribution_major_version }}.yml"
|
|
- "{{ ansible_distribution | lower }}.yml"
|
|
- "{{ ansible_os_family | lower }}-{{ ansible_distribution_major_version | lower }}.yml"
|
|
- "{{ ansible_os_family | lower }}.yml"
|
|
tags:
|
|
- prometheus_configure
|
|
- prometheus_install
|
|
- prometheus_run
|
|
|
|
- include: preflight.yml
|
|
tags:
|
|
- prometheus_configure
|
|
- prometheus_install
|
|
- prometheus_run
|
|
|
|
- include: install.yml
|
|
become: true
|
|
tags:
|
|
- prometheus_install
|
|
|
|
- include: configure.yml
|
|
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
|