mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-07 03:00:33 -07:00
dnf_versionlock: add support for Fedora 41 and dnf5 (#9846)
Fixes: #9556
Signed-off-by: Abhijeet Kasurde <Akasurde@redhat.com>
(cherry picked from commit 86dea88cb6
)
Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>
12 lines
539 B
YAML
12 lines
539 B
YAML
---
|
|
# Copyright (c) Ansible Project
|
|
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
- block:
|
|
- include_tasks: install.yml
|
|
- include_tasks: lock_bash.yml
|
|
- include_tasks: lock_updates.yml
|
|
when: (ansible_distribution == 'Fedora' and ansible_distribution_major_version is version('23', '>=')) or
|
|
(ansible_distribution in ['RedHat', 'CentOS'] and ansible_distribution_major_version is version('8', '>='))
|
|
...
|