ansible-ops-management/role-rocky-node_exporter.yml
2022-03-27 22:01:23 -07:00

22 lines
457 B
YAML

---
- name: Install Prometheus Node Exporter
hosts: all
become: true
pre_tasks:
- name: Install SELinux packages
ansible.builtin.package:
name: python3-policycoreutils.noarch
state: present
roles:
- role: cloudalchemy.node_exporter
state: present
post_tasks:
- name: Open firewall for node-exporter
ansible.posix.firewalld:
port: 9100/tcp
permanent: true
state: enabled
...