commit dcc0822e6b7537e0bafe5f44a0ef359525c0bbcc Author: Wilfried OLLIVIER Date: Sun Jun 5 18:33:08 2022 +0200 Initial commit diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..5568253 --- /dev/null +++ b/LICENSE @@ -0,0 +1,13 @@ + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + Version 2, December 2004 + + Copyright (C) 2019 Wilfried OLLIVIER + + Everyone is permitted to copy and distribute verbatim or modified + copies of this license document, and changing it is allowed as long + as the name is changed. + + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. You just DO WHAT THE FUCK YOU WANT TO. diff --git a/README.md b/README.md new file mode 100644 index 0000000..b4ef52f --- /dev/null +++ b/README.md @@ -0,0 +1,24 @@ +galaxy-influx2 +============== + +Install Influx DB (2) timeseries server on Debian + +Requirements +------------ + +None + +Role Variables +-------------- + +Dependencies +------------ + +None + +Example Playbook +---------------- + + - hosts: servers + roles: + - role: galaxy-influx2 diff --git a/meta/main.yml b/meta/main.yml new file mode 100644 index 0000000..09a8f89 --- /dev/null +++ b/meta/main.yml @@ -0,0 +1,20 @@ +galaxy_info: + author: Wilfried OLLIVIER + description: Install Influx DB (2) timeseries server on Debian + company: none + + license: WTFPL + + min_ansible_version: "2.4" + + platforms: + - name: Debian + versions: + - bullseye + + galaxy_tags: + - influxdb2 + - debian + - timeseries + +dependencies: [] diff --git a/tasks/main.yml b/tasks/main.yml new file mode 100644 index 0000000..91ae216 --- /dev/null +++ b/tasks/main.yml @@ -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 diff --git a/vars/main.yml b/vars/main.yml new file mode 100644 index 0000000..aac062e --- /dev/null +++ b/vars/main.yml @@ -0,0 +1,3 @@ +--- +influx: + repo: https://repos.influxdata.com/influxdb.key