Commit 5c70b92e authored by Ross McDonald's avatar Ross McDonald
Browse files

Added more reliable and cleaner way for determining InfluxDB version.

parent 7412bb5e
......@@ -40,10 +40,3 @@
deb: /tmp/influxdb-ansible-download.deb
state: present
when: influxdb_install_url is defined and influxdb_install_url != None
- name: Capture installed InfluxDB version
command: dpkg -l influxdb
register: reg_influxdb_version
- debug: var=reg_influxdb_version.stdout_lines
\ No newline at end of file
......@@ -14,4 +14,14 @@
when: ansible_os_family == "RedHat"
- include: install-debian.yml
when: ansible_os_family == "Debian"
\ No newline at end of file
when: ansible_os_family == "Debian"
- 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] }}"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment