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: <omitted>
  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: <omitted>

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: <omitted>
  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: <omitted>

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: <omitted>
  stdout: ''
  stdout_lines: <omitted>

-- 
if in trouble, or in doubt
run in circles, scream and shout

-- 
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 [email protected].
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.

Reply via email to