diff --git a/ansible/roles/dnf/tasks/custom-repo.yml b/ansible/roles/dnf/tasks/custom-repo.yml index cabcb8f9b..244537bb9 100644 --- a/ansible/roles/dnf/tasks/custom-repo.yml +++ b/ansible/roles/dnf/tasks/custom-repo.yml @@ -9,7 +9,9 @@ gpgcheck: "{{ item.value.gpgcheck | default(omit)}}" cost: "{{ item.value.cost | default(omit)}}" enabled: "{{ item.value.enabled | default(omit)}}" + exclude: "{{ item.value.exclude | default(omit)}}" gpgcakey: "{{ item.value.gpgcakey | default(omit)}}" + includepkgs: "{{ item.value.includepkgs | default(omit)}}" metadata_expire: "{{ item.value.metadata_expire | default(omit)}}" metalink: "{{ item.value.metalink | default(omit)}}" mirrorlist: "{{ item.value.mirrorlist | default(omit)}}" diff --git a/releasenotes/notes/yum-repository-exclude-includepkgs-6e7b6b988f1f9a9d.yaml b/releasenotes/notes/yum-repository-exclude-includepkgs-6e7b6b988f1f9a9d.yaml new file mode 100644 index 000000000..5103de375 --- /dev/null +++ b/releasenotes/notes/yum-repository-exclude-includepkgs-6e7b6b988f1f9a9d.yaml @@ -0,0 +1,8 @@ +--- +features: + - | + Adds support for the ``exclude`` and ``includepkgs`` options in custom DNF + repositories configured with ``dnf_custom_repos`` in ``dnf.yml``. See + `documentation of the yum_repository Ansible module + `__ + for usage.