Merge "Verify OS for containers installation"

This commit is contained in:
Zuul 2024-09-03 15:09:24 +00:00 committed by Gerrit Code Review
commit e6b6075ce9

View File

@ -89,6 +89,16 @@
tags: tags:
- lxc-containers-create - lxc-containers-create
pre_tasks: pre_tasks:
- name: Check for a supported Operating System
assert:
that:
- (ansible_facts['distribution'] == 'Debian' and ansible_facts['distribution_release'] == 'bullseye') or
(ansible_facts['distribution'] == 'Debian' and ansible_facts['distribution_release'] == 'bookworm') or
(ansible_facts['distribution'] == 'Ubuntu' and ansible_facts['distribution_release'] == 'jammy') or
(ansible_facts['os_family'] == 'RedHat' and ansible_facts['distribution_major_version'] == '9')
msg: >
The only supported platforms for this release are Debian 11 (Bullseye), Debian 12 (Bookworm)
Ubuntu 22.04 (Jammy), CentOS 9 Stream, and Rocky Linux 9.
- name: Setup installation variables - name: Setup installation variables
include_role: include_role:
name: openstack.osa.install_defaults name: openstack.osa.install_defaults