From 3c8ce468a8b1aae52e22f1b8558402613889e404 Mon Sep 17 00:00:00 2001 From: Pierre Riteau Date: Wed, 5 Jan 2022 18:06:03 +0100 Subject: [PATCH] dnf: support exclude and includepkgs arguments Change-Id: I58f7259a956b721052d9adfc935b669ff201b299 --- ansible/roles/dnf/tasks/custom-repo.yml | 2 ++ ...m-repository-exclude-includepkgs-6e7b6b988f1f9a9d.yaml | 8 ++++++++ 2 files changed, 10 insertions(+) create mode 100644 releasenotes/notes/yum-repository-exclude-includepkgs-6e7b6b988f1f9a9d.yaml 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.