Merge branch 'master' of git.9iron.club:salt/ansible

This commit is contained in:
Salt 2020-08-31 21:03:04 -05:00
commit 645a930d64
2 changed files with 10 additions and 1 deletions

View File

@ -7,10 +7,14 @@
apt: apt:
name: name:
- influxdb - influxdb
- influxdb-client
- name: Template out config - name: Template out config
template: template:
src: "influxdb.conf" src: "influxdb.conf"
dest: "/etc/influxdb/influxdb.conf" dest: "/etc/influxdb/influxdb.conf"
notify: restart influxdb notify: restart influxdb
- name: Start and enable Influxdb
systemd:
name: influxdb
enabled: yes
state: started
become: yes become: yes

View File

@ -25,4 +25,9 @@
loop: loop:
- { src: "50-ansible.conf", dest: "50-ansible.conf" } - { src: "50-ansible.conf", dest: "50-ansible.conf" }
notify: restart telegraf notify: restart telegraf
- name: Start and enable Telegraf
systemd:
name: telegraf
enabled: yes
state: started
become: yes become: yes