Initial commit
This commit is contained in:
commit
dcc0822e6b
5 changed files with 92 additions and 0 deletions
32
tasks/main.yml
Normal file
32
tasks/main.yml
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue