dnf: Add support for state parameter in custom repos

This allows us to remove repo files if necessary.

Change-Id: I113ed858fb87d3ace093a92bf52bb772f5142219
This commit is contained in:
Mark Goddard 2021-12-22 17:50:23 +00:00
parent 719968f694
commit 9d11a21928
2 changed files with 6 additions and 0 deletions

View File

@ -20,6 +20,7 @@
proxy_username: "{{ item.value.proxy_username | default(omit)}}"
repo_gpgcheck: "{{ item.value.repo_gpgcheck | default(omit)}}"
sslverify: "{{ item.value.sslverify | default(omit)}}"
state: "{{ item.value.state | default(omit)}}"
with_dict: "{{ dnf_custom_repos }}"
register: register_dnf_command
retries: 3

View File

@ -0,0 +1,5 @@
---
features:
- |
Add support for a ``state`` parameter in repositories listed in
``dnf_custom_repos``.