Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions tasks/rabbitmq_cluster_join.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,19 @@
# See the License for the specific language governing permissions and
# limitations under the License.


- name: Remove all files in RabbitMQ mnesia directory
file:
path: "/var/lib/rabbitmq/mnesia/"
owner: "rabbitmq"
group: "rabbitmq"
mode: "0760"
state: "{{ item }}"
with_items:
- absent

- include_tasks: rabbitmq_restart.yml

- name: Stop rabbitmq app
shell: |
rabbitmqctl stop_app
Expand Down
2 changes: 1 addition & 1 deletion tasks/rabbitmq_feature_flags.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# limitations under the License.

- name: "Gather cluster status"
command: "rabbitmqctl cluster_status --formatter json"
shell: "rabbitmqctl cluster_status --formatter json | tail -n 1"
register: _cluster_status
changed_when: False
tags:
Expand Down
13 changes: 0 additions & 13 deletions tasks/rabbitmq_upgrade_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,19 +56,6 @@
- "{{ installed_rabbitmq_deb }}"
- "{{ installed_rabbitmq_rpm }}"

- name: Compare installed version of RabbitMQ with new version variable
fail:
msg: "To install a new major/minor version of RabbitMQ set '-e rabbitmq_upgrade=true'."
when:
- not rabbitmq_upgrade | bool
- installed_rabbitmq.rc == 0
- not installed_rabbitmq.stdout is search(rabbitmq_package_version)
- rabbitmq_install_method != 'distro'
tags:
- rabbitmq-package-deb
- rabbitmq-package-rpm
- rabbitmq-apt-packages

- include_tasks: rabbitmq_upgrade_prep.yml
args:
apply:
Expand Down