diff --git a/tasks/server/influxdb1.yml b/tasks/server/influxdb1.yml index 4df8d97..c7b2be1 100644 --- a/tasks/server/influxdb1.yml +++ b/tasks/server/influxdb1.yml @@ -2,12 +2,12 @@ # InfluxDB 1.* to be used with Grafana. # https://docs.influxdata.com/influxdb/v1.8/introduction/get-started/ -- name: Server | InfluxDB | Check +- name: Server | InfluxDB1 | Check shell: which influxd register: influxdb_check ignore_errors: yes -- name: Server | InfluxDB | Install +- name: Server | InfluxDB1 | Install shell: "{{ item }}" args: chdir: "{{ ansible_env.HOME }}/Downloads/" @@ -19,7 +19,7 @@ - sleep 10 when: influxdb_check.failed -- name: Server | InfluxDB | Config +- name: Server | InfluxDB1 | Config shell: "{{ item }}" loop: - influx -execute "create database main" diff --git a/tasks/server/influxdb2.yml b/tasks/server/influxdb2.yml index d3bcc15..1d1e259 100644 --- a/tasks/server/influxdb2.yml +++ b/tasks/server/influxdb2.yml @@ -2,12 +2,12 @@ # Create an Influx2.0 DB. Have not successfully used in Grafana yet. # https://docs.influxdata.com/influxdb/v2.0/get-started/?t=Linux -- name: Server | InfluxDB | Check +- name: Server | InfluxDB2 | Check shell: which influxd register: influxdb_check ignore_errors: yes -- name: Server | InfluxDB | Install +- name: Server | InfluxDB2 | Install shell: "{{ item }}" args: chdir: "{{ ansible_env.HOME }}/Downloads/" @@ -19,7 +19,7 @@ - sleep 10 when: influxdb_check.failed -- name: Server | InfluxDB | Config +- name: Server | InfluxDB2 | Config shell: "{{ item }}" loop: - influx setup -f -u ling -p initpassword -o Hyperling -b main -r 0 \ No newline at end of file