---
  - name: Install InfluxDB
    become: true
    apt: deb=https://dl.influxdata.com/influxdb/releases/influxdb_1.0.0_amd64.deb
    register: influx_installed

  - name: restart influxdb
    service: name=influxdb enabled=yes state=restarted
    when: influx_installed.changed

  - name: Set up Initial InfluxDB Database
    when: influx_installed.changed
    shell: "curl -i -XPOST http://localhost:8086/query --data-urlencode 'q={{ item }}'"
    args:
      warn: no
    with_lines: "cat {{ util_base }}/influx_stations.txt"
---
  - name: Install InfluxDB
    become: true
    apt: deb=http://dl.influxdata.com/influxdb/releases/influxdb_1.0.0_amd64.deb
    register: influx_installed

  - name: restart influxdb
    service: name=influxdb enabled=yes state=restarted
    when: influx_installed.changed

  - name: Set up Initial InfluxDB Database
    when: influx_installed.changed
    shell: "curl -i -XPOST http://localhost:8086/query --data-urlencode 'q={{ item }}'"
    args:
      warn: no
    with_lines: "cat {{ util_base }}/influx_stations.txt"
Use HTTP URL for Influx repo.
Use HTTP URL for Influx repo.
