blob: 236c2a9efae910b777f999343671c9faf335fb48 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
- name: Install apt-packages
apt:
name: "{{ item }}"
state: present
with_items:
apt-transport-https
- 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: Wait a few seconds for InfluxDB to start
pause:
seconds: 5
- name: Create database
command: /usr/bin/influx -execute 'CREATE DATABASE gondul'
|