Initial commit

This commit is contained in:
Wilfried OLLIVIER 2022-06-05 18:33:08 +02:00
commit dcc0822e6b
5 changed files with 92 additions and 0 deletions

32
tasks/main.yml Normal file
View file

@ -0,0 +1,32 @@
---
- name: Ensure apt-transport-https
apt:
name: apt-transport-https
state: present
update_cache: yes
- name: Ensure influxdata signing key
apt_key:
url: "{{ influx.repo }}"
state: present
- name: Ensure influxdata repo
apt_repository:
repo: deb https://repos.influxdata.com/debian {{ ansible_distribution_release }} stable
state: present
filename: influxdata
- name: Ensure influx2 and influx-cli
apt:
name: "{{ item }}"
state: present
update_cache: yes
with_items:
- influxdb2
- influxdb2-cli
- name: Ensure influx is started and enabled
systemd:
name: influxdb
state: started
enabled: yes