- name: Install python3-libdnf ansible.builtin.command: cmd: dnf install python3-libdnf5 -y creates: /usr/lib64/python*/site-packages/libdnf5