force rocky 9 or higher

This commit is contained in:
Louis Abel 2023-07-19 12:44:13 -07:00
parent bfa665c136
commit 8d68fb0dae
Signed by: label
GPG Key ID: 3331F061D1D9990E

View File

@ -27,6 +27,14 @@
success_msg: "We are able to run on this node"
fail_msg: "/etc/no-ansible exists - skipping run on this node"
- name: Verify if we are Rocky Linux 9 or higher
ansible.builtin.assert:
that:
- ansible_distribution_major_version|int >= 9
- ansible_distribution | lower == "rocky"
success_msg: "We are on a supported system"
fail_msg: "Only Rocky Linux versions 9 or higher are supported."
# We have separate passwords per rabbitmq env
- name: Import rabbitmq passwords
ansible.builtin.include_vars: