ansible-collection-prometheus/roles/blackbox_exporter/tasks/main.yml
Laurent Indermuehle f0973a0dbc
Add apply tags for all included tasks files
Signed-off-by: Laurent Indermuehle <laurent.indermuehle@epfl.ch>
2023-04-27 09:36:20 +02:00

43 lines
930 B
YAML

---
- name: Preflight
ansible.builtin.include_tasks:
file: preflight.yml
apply:
tags:
- blackbox_exporter_install
- blackbox_exporter_configure
- blackbox_exporter_run
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
tags:
- blackbox_exporter_install
- name: Configure
ansible.builtin.include_tasks:
file: configure.yml
apply:
become: true
tags:
- blackbox_exporter_configure
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