2021-03-16 19:41:10 -05:00
|
|
|
---
|
|
|
|
# Application that populates InfluxDB with metric data.
|
|
|
|
|
2021-03-16 20:01:55 -05:00
|
|
|
- name: Server | InfluxDB | Check
|
|
|
|
shell: which influxd
|
|
|
|
register: influxdb_check
|
|
|
|
ignore_errors: yes
|
|
|
|
|
2021-03-16 19:54:36 -05:00
|
|
|
- name: Server | InfluxDB | Install
|
|
|
|
shell: "{{ item }}"
|
2021-03-16 19:41:10 -05:00
|
|
|
args:
|
|
|
|
chdir: "{{ ansible_env.HOME }}/Downloads/"
|
|
|
|
loop:
|
2021-03-16 20:01:55 -05:00
|
|
|
- mv influxdb2-2.0.4-amd64.deb ~/TRASH/ 2>/dev/null
|
2021-03-16 19:41:10 -05:00
|
|
|
- wget https://dl.influxdata.com/influxdb/releases/influxdb2-2.0.4-amd64.deb
|
2021-03-16 19:48:14 -05:00
|
|
|
- dpkg -i influxdb2-2.0.4-amd64.deb
|
2021-03-16 20:01:55 -05:00
|
|
|
- service influxdb start
|
2021-03-20 03:58:11 -05:00
|
|
|
- influx setup -f -u ling -p initpassword -o Hyperling -b main -r 0
|
2021-03-16 20:01:55 -05:00
|
|
|
when: influxdb_check.failed
|