diff --git a/src/ansible/roles/packages/tasks/Fedora.yml b/src/ansible/roles/packages/tasks/Fedora.yml index 2e4e45f..c31765c 100644 --- a/src/ansible/roles/packages/tasks/Fedora.yml +++ b/src/ansible/roles/packages/tasks/Fedora.yml @@ -118,8 +118,18 @@ state: present name: '{{ ipa.client }}' + - name: Clean dnf caches to refresh package info + command: dnf clean all + + - name: Check installed packages + ansible.builtin.package_facts: + + - name: List available packages + command: dnf list --all + ignore_errors: yes + - name: Install SSSD and its dependencies - package: + dnf: state: present name: - nfs-utils @@ -131,7 +141,7 @@ - 'sssd-*' register: pkg_install - - name: Install SSSD and its dependencies + - name: Check installed packages ansible.builtin.package_facts: # ansible dnf5 seems to have a regression with wildcard *