diff --git a/tasks/packages/redhat.yml b/tasks/packages/redhat.yml index 4d2be6d..a000703 100644 --- a/tasks/packages/redhat.yml +++ b/tasks/packages/redhat.yml @@ -22,6 +22,14 @@ ansible.builtin.package: name: https://rpms.remirepo.net/enterprise/remi-release-{{- ansible_distribution_major_version }}.rpm +# FIXME: Find a better way to enable a repo prior to installing packages +# FIXME: Idempotence is broken on this task. Anything we can hook onto? +- name: (RedHat 9) Enable CRB repository + ansible.builtin.raw: dnf config-manager --set-enabled crb + when: ansible_distribution_major_version == 9 and ansible_os_family == "RedHat" + changed_when: result.rc > 0 + register: result + # FIXME: Find a better way to enable a repo prior to installing packages # FIXME: Idempotence is broken on this task. Anything we can hook onto? - name: (RedHat) Disable current Remi PHP repository (if version changing)