install.yml 1 KB
Newer Older
1
---
2
3
4
5
6
7
8
9
10
11
12
- name: Update hosts configuration
  template: 
    src: etc/hosts.j2
    dest: /etc/hosts
    force: yes
    backup: yes
    owner: root
    group: root
    mode: 0644
  when: influxdb_overwrite_hosts_file

13
- include: install-redhat.yml
14
15
  when: ansible_os_family == "RedHat"

16
- include: install-debian.yml
17
18
  when: ansible_os_family == "Debian"

aisch's avatar
aisch committed
19
20
21
22
23
24
25
- 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

26
27
28
29
30
31
32
33
34
- 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] }}"