1
0
forked from HPC/HPCplaybooks

Added somewhat generic nod-exporter and cadvisor playbooks.

This commit is contained in:
Egon Rijpkema
2019-01-02 13:34:52 +01:00
parent 7fc312e523
commit 82231aa8ba
4 changed files with 57 additions and 0 deletions

View File

@ -0,0 +1,25 @@
---
- name: Install service files.
template:
src: templates/cadvisor.service
dest: /etc/systemd/system/cadvisor.service
mode: 644
owner: root
group: root
tags:
- service-files
- name: install service files
command: systemctl daemon-reload
- name: enable service at boot
systemd:
name: cadvisor
enabled: yes
- name: make sure servcies are started.
systemd:
name: cadvisor.service
state: restarted
tags:
- start-service