Dnf Via Ansible Fails If Baseurl Is Used On CentOS 8

Home » CentOS » Dnf Via Ansible Fails If Baseurl Is Used On CentOS 8
CentOS 2 Comments

Hi,

I ran into an odd issue on CentOS 8, anyone seen this?

When repos are configured to use baseurl instead of mirrorlist, the ansible dnf module fails.

It is as if it is ignoring the baseurl configuration.

#mirrorlist=http://mirrorlist.CentOS.org/?release=$releasever&arch=$basearch&repo

2 thoughts on - Dnf Via Ansible Fails If Baseurl Is Used On CentOS 8

  • Are you using a proxy somehow? Do you have proxy environment variables set in your shell environment which may not exist in the ansible environment?

    Regards, Simon

  • Are you using a proxy somehow? Do you have proxy environment variables set in your shell environment which may not exist in the ansible environment?

    Thanks for the suggestion!

    In the end it turned out the ansible version (2.7.7) on the that machine I run ansible from is not handling dnf commands correctly. Once ansible was updated to 2.9.15 on the ansible master, it works fine.

    /Thomas