Add components to help keep certs up to date.

This commit is contained in:
2021-04-07 20:32:12 -05:00
parent 79916fb743
commit 81f11b72de
8 changed files with 31 additions and 5 deletions

View File

@ -0,0 +1,28 @@
---
# InfluxDB 1.* to be used with Grafana.
# https://docs.influxdata.com/influxdb/v1.8/introduction/get-started/
- name: Server | InfluxDB1 | Check
shell: which influxd
register: influxdb_check
ignore_errors: yes
- name: Server | InfluxDB1 | Install
shell: "{{ item }}"
args:
chdir: "{{ ansible_env.HOME }}/Downloads/"
loop:
- mv influxdb_1.8.4_amd64.deb ~/TRASH/ 2>/dev/null; exit 0
- wget https://dl.influxdata.com/influxdb/releases/influxdb_1.8.4_amd64.deb
- sudo dpkg -i influxdb_1.8.4_amd64.deb
- service influxdb start
- sleep 10
when: influxdb_check.failed
- name: Server | InfluxDB1 | Config
shell: "{{ item }}"
loop:
- influx -execute "create database main"
- influx -execute "show databases"
- influx -database main -execute "INSERT cpu,host=success,region=test value=1.00"
when: influxdb_check.failed