ansible-infra/playbooks/roles/prometheus_node_exporter/tasks/main.yaml

15 lines
422 B
YAML
Raw Permalink Normal View History

- name: make sure the `prometheus-node-exporter` package is installed
ansible.builtin.apt:
name: prometheus-node-exporter
state: present
allow_change_held_packages: true
update_cache: true
become: true
- name: make sure `prometheus-node-exporter.service` is started and ansibled
ansible.builtin.systemd:
name: prometheus-node-exporter.service
state: started
enabled: true
become: true