2022-09-22 14:38:42 +00:00
|
|
|
---
|
2022-11-25 09:18:32 +00:00
|
|
|
- name: Preflight
|
|
|
|
ansible.builtin.include_tasks: preflight.yml
|
2022-09-22 14:38:42 +00:00
|
|
|
tags:
|
|
|
|
- blackbox_exporter_install
|
|
|
|
- blackbox_exporter_configure
|
|
|
|
- blackbox_exporter_run
|
|
|
|
|
2022-11-25 09:18:32 +00:00
|
|
|
- name: Install
|
|
|
|
ansible.builtin.include_tasks:
|
|
|
|
file: install.yml
|
|
|
|
apply:
|
|
|
|
become: true
|
2022-09-22 14:38:42 +00:00
|
|
|
tags:
|
|
|
|
- blackbox_exporter_install
|
|
|
|
|
2022-11-25 09:18:32 +00:00
|
|
|
- name: Configure
|
|
|
|
ansible.builtin.include_tasks:
|
|
|
|
file: configure.yml
|
|
|
|
apply:
|
|
|
|
become: true
|
2022-09-22 14:38:42 +00:00
|
|
|
tags:
|
|
|
|
- blackbox_exporter_configure
|
|
|
|
|
2022-09-23 12:07:54 +00:00
|
|
|
- name: Ensure blackbox_exporter 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: blackbox_exporter
|
|
|
|
state: started
|
|
|
|
enabled: true
|
|
|
|
tags:
|
|
|
|
- blackbox_exporter_run
|