From 699febf764b7b881883c191023a263da793442dd Mon Sep 17 00:00:00 2001 From: Dmitriy Rabotyagov Date: Wed, 13 Nov 2024 14:34:50 +0100 Subject: [PATCH] Respect `package_state` for the role Having rabbitmq_package_state latest by default is not always expected as all other roles do respect defined `package_state` value. Change-Id: I5bcc550419cfe6d51dfb73eb935a93b93e460068 --- defaults/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/defaults/main.yml b/defaults/main.yml index e291fd57..9e76cd49 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -18,7 +18,7 @@ cache_timeout: 600 # Set the package install state for distribution packages # Options are 'present' and 'latest' -rabbitmq_package_state: "latest" +rabbitmq_package_state: "{{ package_state | default('latest') }}" # Defined versions of RabbitMQ and Erlang rabbitmq_package_version: "4.0.3-1"