ansible-collection-prometheus/roles/prometheus/tasks/main.yml
SuperQ 1d98aee69a
Fix up ansible-lint issues.
Signed-off-by: SuperQ <superq@gmail.com>
2022-09-24 10:55:09 +02:00

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