Initial commit

This commit is contained in:
Sven Velt 2024-11-28 12:27:36 +01:00
commit a2a6ce638b
5 changed files with 67 additions and 0 deletions

3
.gitignore vendored Normal file
View file

@ -0,0 +1,3 @@
.*.sw?
*~

34
README.md Normal file
View file

@ -0,0 +1,34 @@
# prepare-dnf5
Prepare system for ansible's dnf5 module
# Requirements
- none
# Role Variables
- none
# Dependencies
- none
# Example Playbook
- hosts: all
roles:
- role: prepare-dnf5
when: ansible_pkg_mgr == "dnf5"
License
-------
AGPL3.0-or-later
Author Information
------------------
- Sven Velt <sven-ansiblerole@velt.biz>
- https://git.velt.biz/

18
meta/main.yml Normal file
View file

@ -0,0 +1,18 @@
---
galaxy_info:
author: Sven Velt
description: Prepare system for dnf5 ansible module
company: velt.biz
issue_tracker_url: https://git.velt.biz/Ansible/prepare-dnf5/issues
license: AGPL-3.0-or-later
min_ansible_version: 2.10
platforms:
- name: Fedora
versions:
- 41
galaxy_tags:
- operations
dependencies: []

6
prepare-dnf5.yml Normal file
View file

@ -0,0 +1,6 @@
---
- hosts: all
roles:
- role: prepare-dnf5
when: ansible_pkg_mgr == "dnf5"

6
tasks/main.yml Normal file
View file

@ -0,0 +1,6 @@
---
- name: Install Python3-DNF5 if necessary
command:
cmd: dnf5 -y install python3-libdnf5
creates: /usr/lib*/python3.*/site-packages/libdnf5
when: ansible_pkg_mgr == "dnf5"