ansible-collection-prometheus/roles/snmp_exporter/tasks/main.yml
gardar e99b807340
fix(lint): fatal lint errors
Signed-off-by: gardar <gardar@users.noreply.github.com>
2022-11-25 15:39:17 +00:00

33 lines
661 B
YAML

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