mirror of
https://github.com/prometheus-community/ansible
synced 2024-11-29 23:30:18 +00:00
e99b807340
Signed-off-by: gardar <gardar@users.noreply.github.com>
33 lines
693 B
YAML
33 lines
693 B
YAML
---
|
|
- name: Preflight
|
|
ansible.builtin.include_tasks: preflight.yml
|
|
tags:
|
|
- blackbox_exporter_install
|
|
- blackbox_exporter_configure
|
|
- blackbox_exporter_run
|
|
|
|
- name: Install
|
|
ansible.builtin.include_tasks:
|
|
file: install.yml
|
|
apply:
|
|
become: true
|
|
tags:
|
|
- blackbox_exporter_install
|
|
|
|
- name: Configure
|
|
ansible.builtin.include_tasks:
|
|
file: configure.yml
|
|
apply:
|
|
become: true
|
|
tags:
|
|
- blackbox_exporter_configure
|
|
|
|
- name: Ensure blackbox_exporter service is started and enabled
|
|
become: true
|
|
ansible.builtin.systemd:
|
|
daemon_reload: true
|
|
name: blackbox_exporter
|
|
state: started
|
|
enabled: true
|
|
tags:
|
|
- blackbox_exporter_run
|