diff options
author | Paul Bonaud <paul.bonaud@fretlink.com> | 2019-11-21 16:07:54 +0100 |
---|---|---|
committer | Paul Bonaud <paul.bonaud@fretlink.com> | 2019-11-21 16:07:54 +0100 |
commit | 00f8e282087dec15be991c8242e1f6afac36c80c (patch) | |
tree | 1170c08444b1b1f56d0f53699cc064ea9a7f719c | |
parent | f5ef298d23b154e0dbf2a8c0718498a878dea0f8 (diff) | |
download | ansible-rabbitmq-00f8e282087dec15be991c8242e1f6afac36c80c.tar.gz ansible-rabbitmq-00f8e282087dec15be991c8242e1f6afac36c80c.tar.zst ansible-rabbitmq-00f8e282087dec15be991c8242e1f6afac36c80c.zip |
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.
-rw-r--r-- | tasks/debian.yml | 5 |
1 files changed, 2 insertions, 3 deletions
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 @@ | |||
41 | 41 | ||
42 | - name: debian | installing RabbitMQ server | 42 | - name: debian | installing RabbitMQ server |
43 | apt: | 43 | apt: |
44 | name: ['rabbitmq-server'] | 44 | name: |
45 | - rabbitmq-server{{ (rabbitmq_debian_version is defined) | ternary(['=',rabbitmq_debian_version] | join(''),'') }} | ||
45 | state: present | 46 | state: present |
46 | become: true | 47 | become: true |
47 | register: result | 48 | register: result |
48 | until: result is successful | 49 | until: result is successful |
49 | with_items: | ||
50 | - rabbitmq-server{{ (rabbitmq_debian_version is defined) | ternary(['=',rabbitmq_debian_version] | join(''),'') }} | ||
51 | 50 | ||
52 | - name: debian | enabling the RabbitMQ Management Console | 51 | - name: debian | enabling the RabbitMQ Management Console |
53 | rabbitmq_plugin: | 52 | rabbitmq_plugin: |