Re: [ansible-devel] Bug? package, yum and dnf modules apparently ignore localpkg_gpgcheck on CentOS 8

2021-11-18 Thread flowerysong
package by design only supports very basic options that are available on all package managers. If you want to do non-generic things like disabling GPG checks you should use the underlying modules directly. On Thursday, November 18, 2021 at 8:45:22 PM UTC-5 j.darby@gmail.com wrote: > Okay,

Re: [ansible-devel] Bug? package, yum and dnf modules apparently ignore localpkg_gpgcheck on CentOS 8

2021-11-18 Thread Darby Mitchell
Okay, but the package module doesn't have a disable_gpg_check setting. So, previously (CentOS 7), you could install an unsigned package from a file with the package module. Now, you can't. You have to use either the dnf module or the yum module on CentOS 8/RHEL 8 to install an unsigned

Re: [ansible-devel] Bug? package, yum and dnf modules apparently ignore localpkg_gpgcheck on CentOS 8

2021-11-18 Thread Matt Martz
That is correct. The module explicitly only evaluates whether `disable_gpg_check` is set or not. It does not respect the system configuration. On Thu, Nov 18, 2021 at 3:36 PM Darby Mitchell wrote: > I ran into a problem that I think is a bug, but I saw that I should bring > it up as a question

[ansible-devel] Bug? package, yum and dnf modules apparently ignore localpkg_gpgcheck on CentOS 8

2021-11-18 Thread Darby Mitchell
I ran into a problem that I think is a bug, but I saw that I should bring it up as a question on the mailing list first. So, my question is, is it expected behavior for ansible.builtin.package, ansible.builtin.yum and ansible.builtin.dnf to ignore the localpkg_gpgcheck setting in