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 <j.darby.mitch...@gmail.com>
wrote:

> 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
> /etc/dnf/dnf.conf?
>
> On CentOS 7, the package module and the yum module both honor the
> localpkg_gpgcheck setting in /etc/yum.conf.  If you set it to 0, you can
> install unsigned packages from a file using the package module (which
> doesn't have a disable_gpg_check option).
>
> On CentOS 8, these modules appear to ignore the localpkg_gpgcheck setting
> in /etc/dnf/dnf.conf (which is soft linked to /etc/yum.conf).
>
> Attached is a minimal example of the behavior...
> If I just dnf install the RPM, it works like a charm.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Development" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ansible-devel+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-devel/2f7007e4-9554-4255-be38-f5bd668b48cfn%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-devel/2f7007e4-9554-4255-be38-f5bd668b48cfn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Matt Martz
@sivel
sivel.net

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-devel/CAD8N0v9eQPijVQXG8gaUSTewMbUe%2BjCRAtDy0kQBkKaxx6BSZw%40mail.gmail.com.

Reply via email to