diff --git a/ansible/roles/dnf/tasks/custom-repo.yml b/ansible/roles/dnf/tasks/custom-repo.yml index cabcb8f9b..b3fe1fe7b 100644 --- a/ansible/roles/dnf/tasks/custom-repo.yml +++ b/ansible/roles/dnf/tasks/custom-repo.yml @@ -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 diff --git a/releasenotes/notes/dnf-repo-state-39f6cc69d7a45faf.yaml b/releasenotes/notes/dnf-repo-state-39f6cc69d7a45faf.yaml new file mode 100644 index 000000000..69eec135e --- /dev/null +++ b/releasenotes/notes/dnf-repo-state-39f6cc69d7a45faf.yaml @@ -0,0 +1,5 @@ +--- +features: + - | + Add support for a ``state`` parameter in repositories listed in + ``dnf_custom_repos``.