42 lines
860 B
YAML
42 lines
860 B
YAML
---
|
|
- name: install depencies packages
|
|
apt:
|
|
name: '{{ packages }}'
|
|
vars:
|
|
packages:
|
|
- apt-transport-https
|
|
- collectd-core
|
|
- python-pip
|
|
register: result
|
|
until: result is succeeded
|
|
retries: 2
|
|
tags: influxdb
|
|
|
|
- name: add key for influxdb repository
|
|
apt_key:
|
|
url: https://repos.influxdata.com/influxdb.key
|
|
register: result
|
|
until: result is succeeded
|
|
retries: 2
|
|
tags: influxdb
|
|
|
|
- name: add influxdb repository
|
|
apt_repository:
|
|
repo: 'deb https://repos.influxdata.com/debian {{ ansible_distribution_release }} stable'
|
|
tags: influxdb
|
|
|
|
- name: install influxdb package
|
|
apt:
|
|
name: influxdb
|
|
register: result
|
|
until: result is succeeded
|
|
retries: 2
|
|
tags: influxdb
|
|
|
|
- name: install python-influxdb
|
|
pip:
|
|
name: influxdb
|
|
register: result
|
|
until: result is succeeded
|
|
retries: 2
|
|
tags: influxdb
|