On Sun, Jul 10, 2022 at 9:10 PM David Logan <
skra...@gmail.com> wrote:
>
> Hi Folks,
>
> Having a problem with a rc 126 from yum. I have tried the following options and am receiving the following error messages. I did find a reference to this particular error but not on RHEL 2.9.27 (which is what I'm running)
"ansible-2.9" is obsolete and should be updated to ansible-core 2.11
at lease. EPEL is probably not going to publish ansible-core for RHEL
7, since RHEL 8 is publishing ansible-core and it's.... well, it's
awkward to repackage for RHEL 7. I've done it, over at
https://github.com/nkadel/ansiblerepo/, but only publish RPM building
tools, not RPMs.
Ignore the "ansible" package from now on, install nad use
ansible-core. What is now called "ansible" isn't, it's a bundle of
more than 100 distinct ansible galaxy collection modules and of very
little practical use to most ansible server setups. The modules can be
installed individually if needed, which is much smaller and likely
more stable.
> This was working until I removed a variable from the ansible module but has not worked since (I'm unsure if this was the issue, it may be a red herring). I am running with a RedHat Satellite as my content server. As I note below, I can do this manually on the server in question. Ansible seems to have lost parts of its environment at some point, it can't see the paths anymore.
>
> I am able to do a yum/dnf info pbis-open on the server that the playbook is being run on. I can also do a simple
>
> # yum install pbis-open
Since you've not included the full logs, it's difficult to guess. But
the first step is to get to a more contemporary ansible-core for your
ansible server, I think.
> and this works fine. Any thoughts would be most appreciated
>
> Thanks
> David
>
> ansible.builtin.yum
>
> TASK [/etc/ansible/roles/glx-pbis-master : Install pbis] *****************************************************************************************************
> task path: /etc/ansible/roles/glx-pbis-master/tasks/redhat_install.yml:12
> fatal: [dcslanstsap01t.cprod.corp.ntgov]: FAILED! => changed=false
> msg: No package matching 'pbis-open' found available, installed or updated
> rc: 126
> results:
> - No package matching 'pbis-open' found available, installed or updated
I am guessing that whatever other settings you may have are disabling
yum auditing commands for the channel that holds "pbs-open" unless run
as the root user.
Do a "yum list pbs-open" to get a better handle on the issue. Because
that package is not in the standard CENTOS or publich RHEL channels,
as best I can tell.
> --
> You received this message because you are subscribed to the Google Groups "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
ansible-proje...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/CA%2B8iFp6_dN4gFyq%2BG1sCF6NSO%3DxT68fcBOAyaZeo%3DnhjFgE7CA%40mail.gmail.com.