base: Make sure python dnf bindings are installed

This commit is contained in:
Timo Makinen 2025-01-06 21:02:55 +00:00
parent fa7402a8eb
commit 9a5cd91532

View file

@ -3,6 +3,25 @@
ansible.builtin.hostname:
name: "{{ inventory_hostname }}"
- name: Check if dnf python bindings are installed
ansible.builtin.command:
argv:
- rpm
- "-q"
- python3-dnf
register: result
failed_when: false
changed_when: false
- name: Install dnf python bindings
ansible.builtin.command:
argv:
- dnf
- install
- "-y"
- python3-dnf
when: result.rc != 0
- name: Install OS specific roles for physical hardware
ansible.builtin.include_role:
name: cpupower