diff options
author | Ole Mathias Aa. Heggem <msbone1995@gmail.com> | 2017-11-05 23:33:04 +0100 |
---|---|---|
committer | Ole Mathias Aa. Heggem <msbone1995@gmail.com> | 2017-11-05 23:33:04 +0100 |
commit | eabcf10ede6f9eee77b85f537cef023f89111f9d (patch) | |
tree | abfeac2797b85ab1998398c41e31a719d042662b /ansible/roles/influx | |
parent | be1aa154d5ca81b2cfd730245f90c9d50aba74e3 (diff) |
influx/chart and ansible
Diffstat (limited to 'ansible/roles/influx')
-rw-r--r-- | ansible/roles/influx/main.yml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ansible/roles/influx/main.yml b/ansible/roles/influx/main.yml new file mode 100644 index 0000000..74a6666 --- /dev/null +++ b/ansible/roles/influx/main.yml @@ -0,0 +1,14 @@ +- name: Import InfluxDB GPG signing key + apt_key: url=https://repos.influxdata.com/influxdb.key state=present + +- name: Add InfluxDB repository + apt_repository: repo='deb https://repos.influxdata.com/debian jessie stable' state=present + +- name: Install InfluxDB packages + apt: name=influxdb state=present update_cache=yes + +- name: Start the InfluxDB service + service: name=influxdb state=started + +- name: Create database +command: /usr/bin/influx -execute 'CREATE DATABASE gondul' |