From: Paul Bonaud Date: Thu, 21 Nov 2019 15:07:54 +0000 (+0100) Subject: debian: fix the use of 'rabbitmq_debian_version' variable X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=00f8e282087dec15be991c8242e1f6afac36c80c;p=github%2Ffretlink%2Fansible-rabbitmq.git debian: fix the use of 'rabbitmq_debian_version' variable Right now the dedicated rabbitmq_debian_version variable was unused by the debian installer. This commit fixes the debian install task to be able to install a specific package version. --- diff --git a/tasks/debian.yml b/tasks/debian.yml index 0a6572e..3a4568d 100644 --- a/tasks/debian.yml +++ b/tasks/debian.yml @@ -41,13 +41,12 @@ - name: debian | installing RabbitMQ server apt: - name: ['rabbitmq-server'] + name: + - rabbitmq-server{{ (rabbitmq_debian_version is defined) | ternary(['=',rabbitmq_debian_version] | join(''),'') }} state: present become: true register: result until: result is successful - with_items: - - rabbitmq-server{{ (rabbitmq_debian_version is defined) | ternary(['=',rabbitmq_debian_version] | join(''),'') }} - name: debian | enabling the RabbitMQ Management Console rabbitmq_plugin: