This PR introduces a new variable, consul_force_install, which when true, will forcibly install Consul on the host. Otherwise, when this role runs, the Consul version is inspected with consul --version and compared to consul_version to determine if an upgrade is necessary. Thus, the consul_install_upgrade variable is no longer necessary and has been removed by this PR.
This PR also contains a few small cleanups and fixes, primarily for Windows (which I suspect is somewhat less rigorously tested than other platforms).
I have tested these changes locally to make sure that initial installation, idempotent installation, and an upgrade all work correctly. I have tested on the following platforms:
This PR introduces a new variable,
consul_force_install
, which when true, will forcibly install Consul on the host. Otherwise, when this role runs, the Consul version is inspected withconsul --version
and compared toconsul_version
to determine if an upgrade is necessary. Thus, theconsul_install_upgrade
variable is no longer necessary and has been removed by this PR.This PR also contains a few small cleanups and fixes, primarily for Windows (which I suspect is somewhat less rigorously tested than other platforms).
I have tested these changes locally to make sure that initial installation, idempotent installation, and an upgrade all work correctly. I have tested on the following platforms:
Fixes https://github.com/ansible-community/ansible-consul/issues/87