blob: 2f31b8506f5f406add11ea5ab31bcd65bed49fac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
- name: Install apt-packages
apt:
name: 'apt-transport-https'
state: present
- 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/{{ ansible_distribution | lower }} {{ ansible_distribution_release | lower }} 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'
|