]> git.immae.eu Git - github/fretlink/ansible-rabbitmq.git/commitdiff
debian: fix the use of 'rabbitmq_debian_version' variable 8/head
authorPaul Bonaud <paul.bonaud@fretlink.com>
Thu, 21 Nov 2019 15:07:54 +0000 (16:07 +0100)
committerPaul Bonaud <paul.bonaud@fretlink.com>
Thu, 21 Nov 2019 15:07:54 +0000 (16:07 +0100)
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.

tasks/debian.yml

index 0a6572e365909aaf28d3e104de3c0baa20298c68..3a4568d1af56ad1211a55f668745d6860a7b34ef 100644 (file)
 
 - 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: