Support credentials for custom DNF repositories

This allows use of repositories protected with HTTP basic
authentication.

Change-Id: I6c9686bdf736d58738fbe88169e62833cc85d2f4
This commit is contained in:
Mark Goddard 2024-02-06 15:06:54 +00:00 committed by Pierre Riteau
parent e469e99eba
commit bd6673477f
2 changed files with 7 additions and 0 deletions

View File

@ -16,12 +16,14 @@
metalink: "{{ item.value.metalink | default(omit)}}"
mirrorlist: "{{ item.value.mirrorlist | default(omit)}}"
mirrorlist_expire: "{{ item.value.mirrorlist_expire | default(omit)}}"
password: "{{ item.value.password | default(omit) }}"
priority: "{{ item.value.priority | default(omit)}}"
proxy: "{{ item.value.proxy | default(omit)}}"
proxy_password: "{{ item.value.proxy_password | default(omit)}}"
proxy_username: "{{ item.value.proxy_username | default(omit)}}"
repo_gpgcheck: "{{ item.value.repo_gpgcheck | default(omit)}}"
sslverify: "{{ item.value.sslverify | default(omit)}}"
username: "{{ item.value.username | default(omit) }}"
state: "{{ item.value.state | default(omit)}}"
with_dict: "{{ dnf_custom_repos }}"
register: register_dnf_command

View File

@ -0,0 +1,5 @@
---
features:
- |
Adds support for specifying credentials (username and password) for custom
DNF repositories.