ansible-role-influxdb/tasks/install.yml

43 lines
891 B
YAML

---
- name: install depencies packages
apt:
name: '{{ packages }}'
vars:
packages:
- apt-transport-https
- collectd-core
- python3-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
executable: /usr/bin/pip3
register: result
until: result is succeeded
retries: 2
tags: influxdb