2018-12-06 02:59:47 +08:00
|
|
|
---
|
|
|
|
- name: ship systemd service
|
2019-04-08 21:40:25 +08:00
|
|
|
template:
|
2019-05-13 22:21:16 +08:00
|
|
|
src: node_exporter.service.j2
|
|
|
|
dest: "/etc/systemd/system/node_exporter.service"
|
2018-12-06 02:59:47 +08:00
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: 0644
|
2019-05-16 16:56:06 +08:00
|
|
|
|
2019-06-11 21:35:28 +08:00
|
|
|
- name: add the cfg80211 module
|
|
|
|
modprobe:
|
|
|
|
name: cfg80211
|
|
|
|
state: present
|
|
|
|
|
2019-05-16 16:56:06 +08:00
|
|
|
- name: start the node_exporter service
|
|
|
|
systemd:
|
|
|
|
name: node_exporter
|
|
|
|
state: started
|
|
|
|
enabled: yes
|
|
|
|
daemon_reload: yes
|
|
|
|
failed_when: false
|