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)
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
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
ansible.builtin.package
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
ansible.built.shell and yum as command
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=true
cmd: yum install “pbis-open”
delta: ‘0:00:00.526719’
end: ‘2022-07-11 10:24:44.942498’
msg: non-zero return code
rc: 1
start: ‘2022-07-11 10:24:44.415779’
stderr: ‘Error: Nothing to do’
stderr_lines:
stdout: |-
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-
: manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
No package pbis-open available.
stdout_lines:
After a rerun
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=true
cmd: yum install “pbis-open”
delta: ‘0:00:00.526719’
end: ‘2022-07-11 10:24:44.942498’
msg: non-zero return code
rc: 1
start: ‘2022-07-11 10:24:44.415779’
stderr: ‘Error: Nothing to do’
stderr_lines:
stdout: |-
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-
: manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
No package pbis-open available.
stdout_lines:
Tried DNF as this is a RHEL 8.6 box
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=true
cmd: /usr/bin/dnf clean all ; /usr/bin/dnf install “pbis-open”
delta: ‘0:00:00.006736’
end: ‘2022-07-11 10:28:03.068773’
msg: non-zero return code
rc: 127
start: ‘2022-07-11 10:28:03.062037’
stderr: |-
/bin/sh: /usr/bin/dnf: No such file or directory
/bin/sh: /usr/bin/dnf: No such file or directory
stderr_lines:
stdout: ‘’
stdout_lines: