commit a2a6ce638b58e8d115fefb0f12050b728a51280f Author: Sven Velt Date: Thu Nov 28 12:27:36 2024 +0100 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..98a3264 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +.*.sw? +*~ + diff --git a/README.md b/README.md new file mode 100644 index 0000000..4d0d030 --- /dev/null +++ b/README.md @@ -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 +- https://git.velt.biz/ + diff --git a/meta/main.yml b/meta/main.yml new file mode 100644 index 0000000..e06eb0c --- /dev/null +++ b/meta/main.yml @@ -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: [] + diff --git a/prepare-dnf5.yml b/prepare-dnf5.yml new file mode 100644 index 0000000..4ba023c --- /dev/null +++ b/prepare-dnf5.yml @@ -0,0 +1,6 @@ +--- +- hosts: all + + roles: + - role: prepare-dnf5 + when: ansible_pkg_mgr == "dnf5" diff --git a/tasks/main.yml b/tasks/main.yml new file mode 100644 index 0000000..5f9d9d1 --- /dev/null +++ b/tasks/main.yml @@ -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"