Fedora Rawhide (46) provides Python 3.15 which breaks Ansible versions
prior to 2.22. As of today, Ansible 2.22 is not released yet, so we need
to use beta and release candidate versions at this time.
This patch will still work once the stable release is available, and
will allow the use of special versions in the future, if required.
Signed-off-by: Rafael Guterres Jeffman <rjeffman@redhat.com>
Ansible core needs to stay at 2.20 for now to be able to build the
container for ansible-freeipa testing on Fedora Rawhide.
ansible.legacy.setup is not usable with Ansible core 2.21:
ansible/module_utils/_internal/_patches/__init__.py, line 45,
in get_current_implementation\nAttributeError: module
'dataclasses' has no attribute '_is_type'
This patch modify the pipelines to create stages using the 'each'
expression on Azure pipelines, so that the configuration and the list of
distributions can be set using variables.
Testing CentOS 8 Stream and Galaxy collections still need to be handled
in a separate group, although, the pipeline configuration becomes easily
changed, specially when updating Ansible versions.
Several optimizations have been done to the pipelines, to make them
closer to what can be reproduced, with the existing scripts, in a
development environment:
- Use start.sh and build.sh scripts to build and start containers
- Use variables to configure different stages instead of using separate
files
- Use a commom 'prepare_environment' to create the environment for every
pipeline
- Use a single file defining testing steps (run_tests.yml)
- Remove Centos 7 pipelines
- Reduce the number of pipelines in the test matrix due to the amount of
time that tests were using
- Use Azure "loop" (each) to create test groups
The above changes make the pipelines easier to understand and modify.