Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sol1 Ansible Roles
sol1-influxdb
Commits
5c70b92e
Commit
5c70b92e
authored
Jan 27, 2016
by
Ross McDonald
Browse files
Added more reliable and cleaner way for determining InfluxDB version.
parent
7412bb5e
Changes
2
Hide whitespace changes
Inline
Side-by-side
tasks/install-debian.yml
View file @
5c70b92e
...
...
@@ -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
tasks/install.yml
View file @
5c70b92e
...
...
@@ -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]
}}"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment