ansible/roles/node_explorer/tasks/service.yml

14 lines
312 B
YAML
Raw Normal View History

2021-09-19 15:34:38 +00:00
---
- become: yes
block:
- name: copy systemd service config
copy:
src: lib/systemd/system/node_explorer.service
dest: /lib/systemd/system/node_explorer.service
- name: enable systemd service
systemd:
name: node_explorer
enabled: yes
state: started