14 lines
422 B
YAML
14 lines
422 B
YAML
- 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
|