diff --git a/roles/splunk_common/tasks/get_facts.yml b/roles/splunk_common/tasks/get_facts.yml index bb9b2f84..dd20a87e 100644 --- a/roles/splunk_common/tasks/get_facts.yml +++ b/roles/splunk_common/tasks/get_facts.yml @@ -73,7 +73,7 @@ splunk_current_build_hash: "{{ manifests.files[0].path | regex_search(regexp, '\\3') if (manifests.matched == 1) else '0' }}" splunk_target_build_hash: "{{ splunk.build_location | string | regex_search(regexp, '\\3') | default('0') }}" vars: - regexp: 'splunk\D*?-(\d+\.\d+\.\d+(\.\d+)?)-(.*?)-.*?' + regexp: 'splunk\D*?-(\d+\.\d+\.\d+(\.\d+)?)-(.*?)[-\.].*?' # We are upgrading if it is not a fresh installation and the current version is different from the target version, # and allowing upgrades between new and old hashes of the same version.