env-ansible/tasks/server/influxdb2.yml

25 lines
770 B
YAML
Raw Normal View History

---
# Create an Influx2.0 DB. Have not successfully used in Grafana yet.
2021-03-20 06:12:41 -05:00
# https://docs.influxdata.com/influxdb/v2.0/get-started/?t=Linux
2021-03-20 06:15:56 -05:00
- name: Server | InfluxDB2 | Check
shell: which influxd
register: influxdb_check
ignore_errors: yes
2021-03-20 06:15:56 -05:00
- name: Server | InfluxDB2 | Install
2021-03-16 19:54:36 -05:00
shell: "{{ item }}"
args:
chdir: "{{ ansible_env.HOME }}/Downloads/"
loop:
- mv influxdb2-2.0.4-amd64.deb ~/TRASH/ 2>/dev/null; exit 0
- wget https://dl.influxdata.com/influxdb/releases/influxdb2-2.0.4-amd64.deb
- sudo dpkg -i influxdb2-2.0.4-amd64.deb
- service influxdb start
- sleep 10
when: influxdb_check.failed
2021-03-20 06:15:56 -05:00
- name: Server | InfluxDB2 | Config
shell: "{{ item }}"
loop:
- influx setup -f -u ling -p initpassword -o Hyperling -b main -r 0