env-ansible/tasks/server/influxdb.yml

19 lines
595 B
YAML
Raw Normal View History

---
# Application that populates InfluxDB with metric data.
- 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 }}"
args:
chdir: "{{ ansible_env.HOME }}/Downloads/"
loop:
- mv influxdb2-2.0.4-amd64.deb ~/TRASH/ 2>/dev/null
- 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
- service influxdb start
- influx setup -f -u ling -p initpassword -o Hyperling -b main -r 0
when: influxdb_check.failed