Do not restart rabbitmq when no version is changed

If rabbitmq version in the role equals to already installed version
there is no reason to stop/start rabbitmq and cause a downtime.

Change-Id: I523be647b5e82e6f088428bf2db24dc4cd2cfb53
Closes-Bug: 1766636
This commit is contained in:
Albert Mikaelyan 2018-05-03 13:03:38 +03:00
parent 609a2ac181
commit c78e0b1d02
1 changed files with 4 additions and 1 deletions

View File

@ -70,4 +70,7 @@
- include: rabbitmq_upgrade_prep.yml
static: no
when: rabbitmq_upgrade | bool
when:
- rabbitmq_upgrade | bool
- installed_rabbitmq.rc == 0
- not installed_rabbitmq.stdout | search(rabbitmq_package_version)