mirror of
https://github.com/prometheus-community/ansible
synced 2024-11-23 04:13:05 +00:00
f0973a0dbc
Signed-off-by: Laurent Indermuehle <laurent.indermuehle@epfl.ch>
43 lines
878 B
YAML
43 lines
878 B
YAML
---
|
|
- name: Preflight
|
|
ansible.builtin.include_tasks:
|
|
file: preflight.yml
|
|
apply:
|
|
tags:
|
|
- snmp_exporter_install
|
|
- snmp_exporter_configure
|
|
- snmp_exporter_run
|
|
tags:
|
|
- snmp_exporter_install
|
|
- snmp_exporter_configure
|
|
- snmp_exporter_run
|
|
|
|
- name: Install
|
|
ansible.builtin.include_tasks:
|
|
file: install.yml
|
|
apply:
|
|
become: true
|
|
tags:
|
|
- snmp_exporter_install
|
|
tags:
|
|
- snmp_exporter_install
|
|
|
|
- name: Configure
|
|
ansible.builtin.include_tasks:
|
|
file: configure.yml
|
|
apply:
|
|
become: true
|
|
tags:
|
|
- snmp_exporter_configure
|
|
tags:
|
|
- snmp_exporter_configure
|
|
|
|
- name: Ensure snmp_exporter service is started and enabled
|
|
become: true
|
|
ansible.builtin.systemd:
|
|
daemon_reload: true
|
|
name: snmp_exporter
|
|
state: started
|
|
enabled: true
|
|
tags:
|
|
- snmp_exporter_run
|