install.yml 820 Bytes
Newer Older
1
---
2
- include: install-redhat.yml
3
4
  when: ansible_os_family == "RedHat"

5
- include: install-debian.yml
6
7
  when: ansible_os_family == "Debian"

aisch's avatar
aisch committed
8
9
10
11
12
13
14
- name: Install InfluxDB python client package [PIP]
  pip: >
    name=influxdb
    state={{ influxdb_python_client_state | default(omit) }}
    version={{ influxdb_python_client_version | default(omit) }}
  when: influxdb_install_python_client

15
16
17
18
19
20
21
22
23
- name: Capture InfluxDB version information
  command: influxd version
  register: influxdb_runtime_version_raw

- name: Capture InfluxDB version, branch, and commit
  set_fact:
    influxdb_runtime_version: "{{ influxdb_runtime_version_raw.stdout.split()[1] }}"
    influxdb_runtime_branch: "{{ influxdb_runtime_version_raw.stdout.split()[3] }}"
    influxdb_runtime_commit: "{{ influxdb_runtime_version_raw.stdout.split()[4] }}"