aboutsummaryrefslogtreecommitdiffstats
path: root/ansible/roles/influx
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/roles/influx')
-rw-r--r--ansible/roles/influx/main.yml14
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'