Make sure services are enabled and started

This commit is contained in:
Salt 2020-08-31 01:46:48 -05:00
parent 1982326553
commit 535d1b4929
2 changed files with 10 additions and 0 deletions

View File

@ -13,4 +13,9 @@
src: "influxdb.conf"
dest: "/etc/influxdb/influxdb.conf"
notify: restart influxdb
- name: Start and enable Influxdb
systemd:
name: influxdb
enabled: yes
state: started
become: yes

View File

@ -17,4 +17,9 @@
apt:
name:
- telegraf
- name: Start and enable Telegraf
systemd:
name: telegraf
enabled: yes
state: started
become: yes