ansible-ops-management/role-rocky-node_exporter.yml

23 lines
457 B
YAML
Raw Normal View History

2022-02-27 03:19:20 +00:00
---
- name: Install Prometheus Node Exporter
hosts: all
become: true
pre_tasks:
- name: Install SELinux packages
2022-03-28 05:01:23 +00:00
ansible.builtin.package:
2022-02-27 03:19:20 +00:00
name: python3-policycoreutils.noarch
state: present
roles:
2022-03-28 05:01:23 +00:00
- role: cloudalchemy.node_exporter
2022-02-27 03:19:20 +00:00
state: present
post_tasks:
- name: Open firewall for node-exporter
ansible.posix.firewalld:
port: 9100/tcp
permanent: true
state: enabled
...