Skip to content

Commit

Permalink
provision: update cache
Browse files Browse the repository at this point in the history
  • Loading branch information
jakub-vavra-cz committed Jun 6, 2024
1 parent 4dd4618 commit 88ab11b
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions src/ansible/roles/packages/tasks/Fedora.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,23 @@
state: present
name: '{{ ipa.client }}'

- name: Check installed packages
ansible.builtin.package_facts:

- name: Ugly hack for dnf5
dnf5:
state: present
name: 'sssd-*'
register: dnf5_pkg_install
when: "'dnf5' in ansible_facts.packages"

- name: Show installed sssd packages by dnf5
ansible.builtin.debug:
var: dnf5_pkg_install
when: "'dnf5' in ansible_facts.packages"

- name: Install SSSD and its dependencies
package:
dnf:
state: present
name:
- nfs-utils
Expand All @@ -131,7 +146,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 *
Expand Down

0 comments on commit 88ab11b

Please sign in to comment.