kolla-ansible/ansible/rabbitmq-upgrade.yml
Matt Crees 249c1e89de Add command to upgrade to a target version of RMQ
Required before a SLURP upgrade

Change-Id: I09a45d26a6075554b204e007f64122f23de5f53c
2024-08-12 15:05:42 +01:00

22 lines
694 B
YAML

---
- import_playbook: gather-facts.yml
- name: Group hosts based on configuration (RabbitMQ Only)
hosts: all
gather_facts: false
max_fail_percentage: >-
{{ group_hosts_max_fail_percentage |
default(kolla_max_fail_percentage) |
default(100) }}
tasks:
- name: Group hosts based on enabled services (RabbitMQ Only)
group_by:
key: "enable_rabbitmq_{{ enable_rabbitmq | bool }}"
changed_when: false
tags: always
- import_playbook: rabbitmq.yml
vars:
kolla_action: upgrade
rabbitmq_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/rabbitmq-{{ rabbitmq_version_suffix | regex_replace('\\.', '-') }}"