# \#dnf

**URL:** https://forum.ansible.com/tag/dnf/409.md

[Latest](https://forum.ansible.com/latest.md) · [Categories](https://forum.ansible.com/categories.md) · [Tags](https://forum.ansible.com/tags.md)

---

## [Installing MariaDB behind proxy with Ansible](https://forum.ansible.com/t/installing-mariadb-behind-proxy-with-ansible/45992)

<div class="topic-metadata">

**Author:** [@Marcusc](https://forum.ansible.com/u/Marcusc)\
**Replies:** 5\
**Last updated:** [July 11, 2026, 7:45am UTC](https://forum.ansible.com/t/installing-mariadb-behind-proxy-with-ansible/45992 "2026-07-11T07:45:29Z")

</div>

Hi, with Ansible my plan was and still is, to automate the deployment for around 15 servers with latest Oracle Linux (don’t ask, it’s a requirement) and mariadb. So far so good and nothing special. One big problem is, …

---

## [Ansible.builtin.dnf timeout on successfully completed "update to latest" task](https://forum.ansible.com/t/ansible-builtin-dnf-timeout-on-successfully-completed-update-to-latest-task/45057)

<div class="topic-metadata">

**Author:** [@mtwest](https://forum.ansible.com/u/mtwest)\
**Replies:** 9\
**Last updated:** [January 25, 2026, 10:14pm UTC](https://forum.ansible.com/t/ansible-builtin-dnf-timeout-on-successfully-completed-update-to-latest-task/45057 "2026-01-25T22:14:14Z")

</div>

The Problem When running a playbook for updating packages on our RHEL9.x systems, the stdout from ansible-playbook (at any verbosity level) hangs at a ansible.builtin.dnf task. - name: upgrade packages in BaseOS & App…

---

## [Issue with ansible.builtin.dnf list updates](https://forum.ansible.com/t/issue-with-ansible-builtin-dnf-list-updates/44763)

<div class="topic-metadata">

**Author:** [@ume90009](https://forum.ansible.com/u/ume90009)\
**Replies:** 3\
**Last updated:** [October 31, 2025, 1:37pm UTC](https://forum.ansible.com/t/issue-with-ansible-builtin-dnf-list-updates/44763 "2025-10-31T13:37:38Z")

</div>

When using the below task: - name: Get list of available updates ansible.builtin.dnf: list: updates register: dnf\_available\_patches - name: Display available updates ansible.builtin.debug: var: dnf\_availa…

---

## [Why does dnf state: absent remove packages depending on the package too?](https://forum.ansible.com/t/why-does-dnf-state-absent-remove-packages-depending-on-the-package-too/44764)

<div class="topic-metadata">

**Author:** [@firefly-sudo](https://forum.ansible.com/u/firefly-sudo)\
**Replies:** 1\
**Last updated:** [October 30, 2025, 2:19pm UTC](https://forum.ansible.com/t/why-does-dnf-state-absent-remove-packages-depending-on-the-package-too/44764 "2025-10-30T14:19:23Z")

</div>

Using this task, I want to remove the patch package from my servers. But after running the task, dkms is also uninstalled. Dkms depends on the patch package. - name: "Remove now unused patch package" ansible.buil…

---

## [Ansible.builtin.dnf parameter defaults for all tasks (for install\_weak\_deps)](https://forum.ansible.com/t/ansible-builtin-dnf-parameter-defaults-for-all-tasks-for-install-weak-deps/39803)

<div class="topic-metadata">

**Author:** [@cloos](https://forum.ansible.com/u/cloos)\
**Replies:** 2\
**Last updated:** [January 24, 2025, 9:00am UTC](https://forum.ansible.com/t/ansible-builtin-dnf-parameter-defaults-for-all-tasks-for-install-weak-deps/39803 "2025-01-24T09:00:24Z")

</div>

We have configured all our hosts in /etc/dnf/dnf.conf to not install weak deps (install\_weak\_deps=False). Sadly I learned that the Ansible ansible.builtin.dnf ignores this configuration and set install\_weak\_deps by defa…

---

## [Diff result between AAP / ansible cmdline dnf](https://forum.ansible.com/t/diff-result-between-aap-ansible-cmdline-dnf/8257)

<div class="topic-metadata">

**Author:** [@Marc010](https://forum.ansible.com/u/Marc010)\
**Replies:** 10\
**Last updated:** [September 24, 2024, 1:27pm UTC](https://forum.ansible.com/t/diff-result-between-aap-ansible-cmdline-dnf/8257 "2024-09-24T13:27:24Z")

</div>

Using the ansible.builtin.ansible module I try to update remote servers. Running my playbook from ansible cmdline it all works fine. Using the same playbook in AAP I get an error: “Failed to download metadata … Cannot d…
